1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00

unkown bug

This commit is contained in:
lxsang 2018-10-15 21:35:57 +02:00
parent 1541ac8aee
commit 0530317f89
2 changed files with 4 additions and 12 deletions

View File

@ -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++;

View File

@ -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{