Date: Thu, 6 May 2004 00:06:20 -0700 (PDT) From: Thomas Wolf <tw@wsf.at> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/66315: mini_httpd - Software caused connection abort[PATCH] Message-ID: <200405060706.i4676KPq020406@www.freebsd.org> Resent-Message-ID: <200405060710.i467ASM8069394@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405060706.i4676KPq020406>