mirror of
https://github.com/lxsang/antd-tunnel-plugin
synced 2024-12-26 18:08:21 +01:00
fix incorrect poll timeout
All checks were successful
gitea-sync/antd-tunnel-plugin/pipeline/head This commit looks good
All checks were successful
gitea-sync/antd-tunnel-plugin/pipeline/head This commit looks good
This commit is contained in:
parent
1cb8bfa32b
commit
8a4763117e
2
tunnel.c
2
tunnel.c
@ -1102,7 +1102,7 @@ void *handle(void *rq_data)
|
|||||||
timeout.tv_usec = PROCESS_TIMEOUT;
|
timeout.tv_usec = PROCESS_TIMEOUT;
|
||||||
pfd.fd = client->sock;
|
pfd.fd = client->sock;
|
||||||
pfd.events = POLLIN;
|
pfd.events = POLLIN;
|
||||||
status = poll(&pfd, 1, PROCESS_TIMEOUT);
|
status = poll(&pfd, 1, PROCESS_TIMEOUT/ 1000);
|
||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case -1:
|
case -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user