1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

fixed timeout issue in axhttd, -fPIC enabled, pkcs8 enabled for server

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@211 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2011-06-24 12:16:42 +00:00
parent 66c588d3ab
commit 96b65cdb96
6 changed files with 18 additions and 7 deletions

View File

@ -266,6 +266,7 @@ int main(int argc, char *argv[])
/* main loop */
while (1)
{
struct timeval tv = { 10, 0 };
FD_ZERO(&rfds);
FD_ZERO(&wfds);
rnum = wnum = -1;
@ -336,7 +337,11 @@ int main(int argc, char *argv[])
active = select(wnum > rnum ? wnum+1 : rnum+1,
rnum != -1 ? &rfds : NULL,
wnum != -1 ? &wfds : NULL,
NULL, NULL);
NULL, usedconns ? &tv : NULL);
/* timeout? */
if (active == 0)
continue;
/* New connection? */
sp = servers;