mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +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;
|
||||
return task;
|
||||
}
|
||||
/*else
|
||||
else
|
||||
{
|
||||
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;
|
||||
return task;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
#endif
|
||||
client->attempt = 0;
|
||||
server_config.connection++;
|
||||
|
@ -163,7 +163,7 @@ int antd_send(void *src, const void* data, int len)
|
||||
break;
|
||||
}
|
||||
}
|
||||
source->attempt = 0;
|
||||
//source->attempt = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -271,7 +271,7 @@ int antd_recv(void *src, void* data, int len)
|
||||
break;
|
||||
}
|
||||
}
|
||||
source->attempt = 0;
|
||||
//source->attempt = 0;
|
||||
/*
|
||||
int stat, r, st;
|
||||
do{
|
||||
|
Loading…
Reference in New Issue
Block a user