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:
parent
3cc2db99d8
commit
823cc65549
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125794
11
www/mini_httpd/files/patch-mini_httpd.c
Normal file
11
www/mini_httpd/files/patch-mini_httpd.c
Normal 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 )
|
Loading…
Reference in New Issue
Block a user