[srvx-commits] CVS: services/src sockcheck.c,1.54.2.21,1.54.2.22
Brought to you by:
entrope
From: Entrope <en...@us...> - 2001-08-14 00:18:59
|
Update of /cvsroot/srvx/services/src In directory usw-pr-cvs1:/tmp/cvs-serv15089/src Modified Files: Tag: rel-1_0 sockcheck.c Log Message: when connect() fails, skip to next test Index: sockcheck.c =================================================================== RCS file: /cvsroot/srvx/services/src/sockcheck.c,v retrieving revision 1.54.2.21 retrieving revision 1.54.2.22 diff -C2 -r1.54.2.21 -r1.54.2.22 *** sockcheck.c 2001/08/12 23:02:29 1.54.2.21 --- sockcheck.c 2001/08/14 00:18:57 1.54.2.22 *************** *** 523,527 **** poller->fd = -2; client->state = NULL; - client->test_index++; return; } --- 523,526 ---- *************** *** 749,752 **** --- 748,757 ---- struct pollfd *poller = poll_list+idx+1; int next_state = -1; + + if (!client->state) { + /* If we got here with a NULL state, connect() to the client + * previously failed. Advance it to the next test. */ + goto next_test; + } if (!client->connected) { |