|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Sockets.Socket and remote closing the connection |
Date: | Mon, 27 Sep 2010 12:02:41 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.3 |
On 09/27/2010 11:20 AM, Holger Hans Peter Freyther wrote:
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.
You mean "s close" here.
2.) s next. -> nil
[s next] on: SystemExceptions.EndOfStream do: [ :e | 'end' printNl. e resume ] -> 'end' nilI have to check why "e resume: 'end'" doesn't work, but the behavior seems right overall.
2.) s isOpen -> true.
This is a bug though. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |