diff options
author | se <se@FreeBSD.org> | 2005-01-08 21:02:18 +0800 |
---|---|---|
committer | se <se@FreeBSD.org> | 2005-01-08 21:02:18 +0800 |
commit | 57ac3b306c4a6345f6cf99f16091216a2c9654e8 (patch) | |
tree | 65d07775f00242b2d7d0c29ccd27899b91f9fdd1 /www | |
parent | 53182fab3402f3607c544e1d160fc85d9aabd145 (diff) | |
download | freebsd-ports-gnome-57ac3b306c4a6345f6cf99f16091216a2c9654e8.tar.gz freebsd-ports-gnome-57ac3b306c4a6345f6cf99f16091216a2c9654e8.tar.zst freebsd-ports-gnome-57ac3b306c4a6345f6cf99f16091216a2c9654e8.zip |
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.c | 11 |
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 000000000000..756be2433ab7 --- /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 ) |