mirror of
https://github.com/lxsang/ant-http
synced 2025-01-31 08:02:48 +01:00
unkown bug
This commit is contained in:
parent
1541ac8aee
commit
0530317f89
@ -223,22 +223,14 @@ void *accept_request(void *data)
|
|||||||
task->handle = accept_request;
|
task->handle = accept_request;
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
/*else
|
else
|
||||||
{
|
{
|
||||||
if (!FD_ISSET(client->sock, &read_flags))
|
if (!FD_ISSET(client->sock, &read_flags))
|
||||||
{
|
{
|
||||||
if(client->attempt > MAX_ATTEMPT)
|
|
||||||
{
|
|
||||||
LOG("Too much attempt for read, give up on %d\n", client->sock);
|
|
||||||
server_config.connection++;
|
|
||||||
unknow(rq->client);
|
|
||||||
return task;
|
|
||||||
}
|
|
||||||
client->attempt++;
|
|
||||||
task->handle = accept_request;
|
task->handle = accept_request;
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
#endif
|
#endif
|
||||||
client->attempt = 0;
|
client->attempt = 0;
|
||||||
server_config.connection++;
|
server_config.connection++;
|
||||||
|
@ -163,7 +163,7 @@ int antd_send(void *src, const void* data, int len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
source->attempt = 0;
|
//source->attempt = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -271,7 +271,7 @@ int antd_recv(void *src, void* data, int len)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
source->attempt = 0;
|
//source->attempt = 0;
|
||||||
/*
|
/*
|
||||||
int stat, r, st;
|
int stat, r, st;
|
||||||
do{
|
do{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user