summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2005-01-08 13:02:18 +0000
committerse <se@FreeBSD.org>2005-01-08 13:02:18 +0000
commit57ac3b306c4a6345f6cf99f16091216a2c9654e8 (patch)
tree65d07775f00242b2d7d0c29ccd27899b91f9fdd1 /www
parent53182fab3402f3607c544e1d160fc85d9aabd145 (diff)
downloadFreeBSD-ports-57ac3b306c4a6345f6cf99f16091216a2c9654e8.zip
FreeBSD-ports-57ac3b306c4a6345f6cf99f16091216a2c9654e8.tar.gz
Make mini_httpd survive ECONNABORTED on a file descriptor.
PR: 66315 Submitted by: Thomas Wolf (tw at wsf dot at)
Diffstat (limited to 'www')
-rw-r--r--www/mini_httpd/files/patch-mini_httpd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/mini_httpd/files/patch-mini_httpd.c b/www/mini_httpd/files/patch-mini_httpd.c
new file mode 100644
index 0000000..756be24
--- /dev/null
+++ b/www/mini_httpd/files/patch-mini_httpd.c
@@ -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 )
OpenPOWER on IntegriCloud