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:
@ -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;
|
||||
|
Reference in New Issue
Block a user