From 823cc655491638faeb4f7c04f54478e70bea1f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Sat, 8 Jan 2005 13:02:18 +0000 Subject: [PATCH] Make mini_httpd survive ECONNABORTED on a file descriptor. PR: 66315 Submitted by: Thomas Wolf (tw at wsf dot at) --- www/mini_httpd/files/patch-mini_httpd.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www/mini_httpd/files/patch-mini_httpd.c 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 )