ports/66315: mini_httpd - Software caused connection abort[PATCH]
Thomas Wolf
tw at wsf.at
Thu May 6 07:10:28 UTC 2004
>Number: 66315
>Category: ports
>Synopsis: mini_httpd - Software caused connection abort[PATCH]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 06 00:10:27 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Thomas Wolf
>Release: 4.9-RELEASE-p4
>Organization:
WSF
>Environment:
FreeBSD pctw5.wsf.local 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #0: Tue Apr 20 13:08:16 CEST 2004 tw at pctw5.wsf.local:/usr/obj/usr/src/sys/wsf11 i386
>Description:
mini_httpd quits on ECONNABORTED
>How-To-Repeat:
nmap -p 80 -sT -P0 TARGET
>Fix:
The following patch seems to work, however I am not sure
if this is the right way to correct the problem.
--- mini_httpd.c.orig Thu May 6 08:45:16 2004
+++ mini_httpd.c Thu May 6 08:46:30 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 )
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list