From nobody@FreeBSD.org  Fri Jul 16 14:59:36 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A520F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Jul 2010 14:59:36 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 941868FC1C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Jul 2010 14:59:36 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6GExauC015692
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 16 Jul 2010 14:59:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o6GExZrq015691;
	Fri, 16 Jul 2010 14:59:35 GMT
	(envelope-from nobody)
Message-Id: <201007161459.o6GExZrq015691@www.freebsd.org>
Date: Fri, 16 Jul 2010 14:59:35 GMT
From: Gennady Proskurin <gpr@mail.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: connect(2) man page does not show ECONNRESET error in the list of possible errors
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148683
>Category:       docs
>Synopsis:       [patch] connect(2) man page does not show ECONNRESET error in the list of possible errors
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gjb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 16 15:00:17 UTC 2010
>Closed-Date:    Mon Sep 13 17:31:42 UTC 2010
>Last-Modified:  Mon Sep 13 17:31:42 UTC 2010
>Originator:     Gennady Proskurin
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
Dr.Web
>Environment:
>Description:
connect() syscall may fail with ECONNRESET error, which is not mentioned in ERROR section of connect(2) man page.

>How-To-Repeat:

>Fix:
Add ECONNRESET to ERROR section with the following description, for example:

[ECONNRESET] Remote host reset the connection request.

http://www.opengroup.org/onlinepubs/9699919799/functions/connect.html


>Release-Note:
>Audit-Trail:

From: Glen Barber <glen.j.barber@gmail.com>
To: bug-followup@FreeBSD.org, gpr@mail.ru
Cc:  
Subject: Re: docs/148683: connect(2) man page does not show ECONNRESET error
 in the list of possible errors
Date: Mon, 26 Jul 2010 19:16:37 -0400

 This is a multi-part message in MIME format.
 --------------050301010102010001070006
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
   Hi,
 
 The attached patch adds ECONNRESET to connect(2).
 
 Regards,
 
 -- 
 Glen Barber
 
 
 --------------050301010102010001070006
 Content-Type: text/plain;
  name="sys.connect2.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="sys.connect2.txt"
 
 Index: 9-CURRENT/lib/libc/sys/connect.2
 ===================================================================
 --- 9-CURRENT/lib/libc/sys/connect.2	(revision 210519)
 +++ 9-CURRENT/lib/libc/sys/connect.2	(working copy)
 @@ -28,7 +28,7 @@
  .\"     @(#)connect.2	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd August 16, 2006
 +.Dd July 26, 2010
  .Dt CONNECT 2
  .Os
  .Sh NAME
 @@ -95,6 +95,8 @@
  Connection establishment timed out without establishing a connection.
  .It Bq Er ECONNREFUSED
  The attempt to connect was forcefully rejected.
 +.It Bq Er ECONNRESET
 +Remote host reset the connection request.
  .It Bq Er ENETUNREACH
  The network is not reachable from this host.
  .It Bq Er EHOSTUNREACH
 
 --------------050301010102010001070006--
Responsible-Changed-From-To: freebsd-doc->gjb 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Sun Sep 5 22:55:00 UTC 2010 
Responsible-Changed-Why:  
I'll take this. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=148683 
State-Changed-From-To: open->patched 
State-Changed-By: gjb 
State-Changed-When: Mon Sep 6 21:40:23 UTC 2010 
State-Changed-Why:  
Patched in HEAD.  MFC in 1 week. 


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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/148683: commit references a PR
Date: Mon,  6 Sep 2010 21:40:38 +0000 (UTC)

 Author: gjb (doc committer)
 Date: Mon Sep  6 21:39:54 2010
 New Revision: 212269
 URL: http://svn.freebsd.org/changeset/base/212269
 
 Log:
   Add ECONNRESET to list of possible errors in connect(2).
   
   PR:		148683
   Submitted by:	Gennady Proskurin <gpr at mail dot ru>
   Approved by:	keramida (mentor)
   MFC after:	1 week
 
 Modified:
   head/lib/libc/sys/connect.2
 
 Modified: head/lib/libc/sys/connect.2
 ==============================================================================
 --- head/lib/libc/sys/connect.2	Mon Sep  6 21:29:21 2010	(r212268)
 +++ head/lib/libc/sys/connect.2	Mon Sep  6 21:39:54 2010	(r212269)
 @@ -28,7 +28,7 @@
  .\"     @(#)connect.2	8.1 (Berkeley) 6/4/93
  .\" $FreeBSD$
  .\"
 -.Dd August 16, 2006
 +.Dd September 5, 2010
  .Dt CONNECT 2
  .Os
  .Sh NAME
 @@ -95,6 +95,8 @@ The socket is already connected.
  Connection establishment timed out without establishing a connection.
  .It Bq Er ECONNREFUSED
  The attempt to connect was forcefully rejected.
 +.It Bq Er ECONNRESET
 +The connection was reset by the remote host.
  .It Bq Er ENETUNREACH
  The network is not reachable from this host.
  .It Bq Er EHOSTUNREACH
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: gjb 
State-Changed-When: Mon Sep 13 17:31:12 UTC 2010 
State-Changed-Why:  
MFC'd to stable/8 and stable/7.  Thanks! 


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