|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] TCP Server Socket issue |
Date: | Thu, 11 Nov 2010 15:32:22 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.6 |
On 11/07/2010 09:55 PM, Holger Hans Peter Freyther wrote:
Hi, I am in a train and hope you excuse my laziness. I have selector like this listen [ | con | socket := Sockets.ServerSocket port: port bindTo: (Sockets.SocketAddress byName: addr). [true] whileTrue: [ socket waitForConnection. con := socket accept. con close. ] ] and this is silently on the GST shell when I CTRL+C and listen again. So the old ServerSocket is still around when I create the new one.
Do you have a strace? It should raise an exception: [(self bind: fd to: addr addrLen: addr size) < 0 ifTrue: [File checkError: self soError] ifCurtailed: [self close]. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |