1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Make mini_httpd survive ECONNABORTED on a file descriptor.

PR:		66315
Submitted by: 	Thomas Wolf (tw at wsf dot at)
This commit is contained in:
Stefan Eßer 2005-01-08 13:02:18 +00:00
parent 3cc2db99d8
commit 823cc65549
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125794

View File

@ -0,0 +1,11 @@
--- mini_httpd.c~ Wed Dec 3 19:27:22 2003
+++ mini_httpd.c Thu May 6 23:36:20 2004
@@ -816,7 +816,7 @@
}
if ( conn_fd < 0 )
{
- if ( errno == EINTR || errno == EAGAIN )
+ if ( errno == EINTR || errno == EAGAIN || errno == ECONNABORTED )
continue; /* try again */
#ifdef EPROTO
if ( errno == EPROTO )