From owner-freebsd-current@FreeBSD.ORG Tue Apr 10 18:11:33 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 26CA716A403 for ; Tue, 10 Apr 2007 18:11:33 +0000 (UTC) (envelope-from coolaz@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.freebsd.org (Postfix) with ESMTP id DA86C13C4DA for ; Tue, 10 Apr 2007 18:11:32 +0000 (UTC) (envelope-from coolaz@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id CB26771ED887; Tue, 10 Apr 2007 20:10:47 +0200 (CEST) Received: from [91.16.209.1] (helo=example.net) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #114) id 1HbKng-0007pd-00; Tue, 10 Apr 2007 20:10:42 +0200 Received: by example.net (nbSMTP-1.00) for uid 1001 (using TLSv1/SSLv3 with cipher AES256-SHA (256/256 bits)) coolaz@web.de; Tue, 10 Apr 2007 20:11:23 +0200 (CEST) Date: Tue, 10 Apr 2007 20:11:22 +0200 From: Martin Kulas To: Randall Stewart Message-ID: <20070410181122.GA12483@thunderbird.tld> References: <20070409214504.GA1780@thunderbird.tld> <461B6945.90109@cisco.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline In-Reply-To: <461B6945.90109@cisco.com> User-Agent: Mutt/1.4.2.2i X-PGP-Key: http://www.stud.uni-hamburg.de/~kulas/mkulas_pubkey.asc Sender: coolaz@web.de X-Sender: coolaz@web.de X-Mailman-Approved-At: Tue, 10 Apr 2007 18:45:44 +0000 Cc: freebsd-current@freebsd.org, LI Xin Subject: Re: netcat with SCTP support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 18:11:33 -0000 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 10, 2007 at 06:39:01AM -0400, Randall Stewart wrote: >=20 > Thanks for checking out SCTP for netcat... let me > see if I can re-create this bug with current and figure > out what is broken... This sounds like a bug with the > TCP model.. I rewrote netcat's readwrite() to use select() instead of the poll() systemcall but read() on the network file descriptor still does not=20 return EOF. So netcat is not notified that the SCTP association has=20 been closed. =20 > So to recreate this.. I set things up run it > and ctl-c the client? Yeah. Starting SCTP server: $ nc -c -l 127.0.0.1 55555 Starting SCTP client: $ nc -c 127.0.0.1 55555 Now send a SIGINT (ctl-c) to client or server. Sending SIGINT using=20 TCP sockets will terminate the connection immediately and notifing the other side. Cheers, Martin =20 --=20 PGP Key: http://www.stud.uni-hamburg.de/~kulas/mkulas_pubkey.asc --SUOF0GtieIMvvwua Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGG9NJu1jKg1agQ1oRAl2KAKCq3UkYCN/+Vd/qRv/mhhXRzK8qSwCfeo3o mWjTRZh/r5/pchnDzDuPamc= =ve0e -----END PGP SIGNATURE----- --SUOF0GtieIMvvwua--