Hello,

I try to play with sockets in Pharo, and I encounter a strange error.
Here is my code:
|tempsock|
        Socket initialize.
        tempsock := Socket newTCP.
        tempsock listenOn: 12345 backlogSize: 4.
        
        [sock isNil] whileTrue:[sock:= tempsock waitForAcceptFor: 600].
        sock sendCommand: 'Hello world!!'.
        sock ifNotNil:
                [[sock isConnected] whileTrue:
                [[sock waitForDataUntil:2000] ifTrue:
                        [sock sendCommand:'Looping'.
                        sock sendCommand: sock receiveData ].
        ]].
        sock closeAndDestroy.

Once the connection is accepted, an exception is thrown in "sock
waitForDataUntil:2000" by BlockCosure>>mustBeBooleanIn:context. From
what I see, the signal "proceed for truth" is sent, and th debugger
kicks in.

How can I prevent the debugger from starting?

Best regards,

Geoffroy

_______________________________________________
Pharo-users mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users

Reply via email to