help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Sockets.Socket and remote closing the connection


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Sockets.Socket and remote closing the connection
Date: Mon, 27 Sep 2010 17:20:41 +0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc14 Lightning/1.0b2 Thunderbird/3.1.4

On 09/27/2010 02:38 PM, Paolo Bonzini wrote:

>> is there anything I can do to find out that the remote has closed the
>> connection? On POSIX I would sooner or later get a -1 on read.
> 
> "Later", after the first read has returned a zero, I think. :)  GST
> should behave the same way.

hmm. socket next is retuning nil but isOpen/isPeerAlive is still returning true.


in two different shells I do

1.) b := TCP.ServerSocket port: 6000 bindTo: TCP.IPAddress anyLocalAddress.
1.) b waitForConnection.
2.) s := TCP.Socket remote: TCP.IPAddress anyLocalAddress port: 6000.
1.) b accept.
1.) b close.
2.) s next. -> nil
2.) s isOpen -> true.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]