From nobody@FreeBSD.org  Thu May  6 00:06:21 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7F25516A4CF
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 May 2004 00:06:21 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6341443D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 May 2004 00:06:21 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i4676K3q020408
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 May 2004 00:06:20 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i4676KPq020406;
	Thu, 6 May 2004 00:06:20 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200405060706.i4676KPq020406@www.freebsd.org>
Date: Thu, 6 May 2004 00:06:20 -0700 (PDT)
From: Thomas Wolf <tw@wsf.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mini_httpd - Software caused connection abort[PATCH]
X-Send-Pr-Version: www-2.3

>Number:         66315
>Category:       ports
>Synopsis:       mini_httpd - Software caused connection abort[PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    se
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 06 00:10:27 PDT 2004
>Closed-Date:    Sat Jan 08 13:03:15 GMT 2005
>Last-Modified:  Sat Jan 08 13:03:15 GMT 2005
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->se 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu May 6 10:44:31 PDT 2004 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66315 

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, tw@wsf.at
Cc:  
Subject: Re: ports/66315: mini_httpd - Software caused connection abort[PATCH]
Date: Thu, 24 Jun 2004 09:01:06 +0200

 Maybe it'd be better to report this upstream to the developers?
 
 Volker
State-Changed-From-To: open->closed 
State-Changed-By: se 
State-Changed-When: Sat Jan 8 13:02:28 GMT 2005 
State-Changed-Why:  
Patch applied, thanks! Will try to contact the program's author, next. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=66315 
>Unformatted:
