Skip to content
Snippets Groups Projects
Commit 315027eb authored by rswindell's avatar rswindell
Browse files

Now continues to listen for incoming clients even if accept() fails.

parent 7818570f
No related branches found
No related tags found
No related merge requests found
...@@ -1239,7 +1239,7 @@ static void send_thread(void* arg) ...@@ -1239,7 +1239,7 @@ static void send_thread(void* arg)
break; break;
} }
total+=wr; total+=wr;
*xfer.lastactive=time(NULL); *xfer.lastactive=time(NULL); /* exception here */
mswait(1); mswait(1);
} }
...@@ -4033,7 +4033,7 @@ void DLLCALL ftp_server(void* arg) ...@@ -4033,7 +4033,7 @@ void DLLCALL ftp_server(void* arg)
lprintf("0000 FTP socket closed while listening"); lprintf("0000 FTP socket closed while listening");
else else
lprintf("0000 !accept failed (ERROR %d)", ERROR_VALUE); lprintf("0000 !accept failed (ERROR %d)", ERROR_VALUE);
break; continue; /* Jun-08-2001 was break; */
} }
if(startup->socket_open!=NULL) if(startup->socket_open!=NULL)
startup->socket_open(TRUE); startup->socket_open(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment