Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 09:48:44 -0400
From:      Randall Stewart <rrs@cisco.com>
To:        Martin Kulas <coolaz@web.de>
Cc:        freebsd-current@freebsd.org, LI Xin <delphij@delphij.net>
Subject:   Re: netcat with SCTP support
Message-ID:  <461CE73C.3010204@cisco.com>
In-Reply-To: <20070410181122.GA12483@thunderbird.tld>
References:  <20070409214504.GA1780@thunderbird.tld> <461B6945.90109@cisco.com> <20070410181122.GA12483@thunderbird.tld>

next in thread | previous in thread | raw e-mail | index | archive | help
Martin:

Ok, I found it.. it was a simple case of not
waking things up if an orderly shutdown happened.. opps.

A comm lost (where you had an abort or some non-orderly
shutdown) would have worked :-D

I will add this to my next patch.. which i am due to
submit.. I will send and let George have a look.. so
I should get it in before the end of the week.

If you want a private patch let me know and I will send it .

R

Martin Kulas wrote:
> On Tue, Apr 10, 2007 at 06:39:01AM -0400, Randall Stewart wrote:
>> 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 
> return EOF.  So netcat is not notified that the SCTP association has 
> been closed.
>  
>> 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 
> TCP sockets will terminate the connection immediately and notifing
> the other side.
> 
> Cheers,
> Martin
>  


-- 
Randall Stewart
NSSTG - Cisco Systems Inc.
803-345-0369 <or> 803-317-4952 (cell)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461CE73C.3010204>