Bug 148683

Summary: [patch] connect(2) man page does not show ECONNRESET error in the list of possible errors
Product: Documentation Reporter: Gennady Proskurin <gpr>
Component: Books & ArticlesAssignee: Glen Barber <gjb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sys.connect2.txt none

Description Gennady Proskurin 2010-07-16 16:00:17 UTC
connect() syscall may fail with ECONNRESET error, which is not mentioned in ERROR section of connect(2) man page.

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
Comment 1 Glen Barber 2010-07-27 00:16:37 UTC
  Hi,

The attached patch adds ECONNRESET to connect(2).

Regards,

-- 
Glen Barber
Comment 2 Glen Barber freebsd_committer freebsd_triage 2010-09-05 23:55:00 UTC
Responsible Changed
From-To: freebsd-doc->gjb

I'll take this.
Comment 3 Glen Barber freebsd_committer freebsd_triage 2010-09-06 22:40:23 UTC
State Changed
From-To: open->patched

Patched in HEAD.  MFC in 1 week.
Comment 4 dfilter service freebsd_committer freebsd_triage 2010-09-06 22:40:38 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"
Comment 5 Glen Barber freebsd_committer freebsd_triage 2010-09-13 18:31:12 UTC
State Changed
From-To: patched->closed

MFC'd to stable/8 and stable/7.  Thanks!