[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Error handling/checking, exceptions in general
From: |
Bonzini |
Subject: |
Re: [Help-smalltalk] Error handling/checking, exceptions in general |
Date: |
Tue, 24 Dec 2002 11:06:04 +0100 |
> It appears gst uses poll() and checks for the POLLERR flag, which I think
> should work to test for the completion of the connection (although, it
> doesn't necessarily mean the connection was successful).
The problem is that I had disabled #ensureWriteable because it does not
work, for example, for TTYs, so the error checking was not deferred to after
connection was completed. Here is a patch that fixes this, along with
supporting SO_ERROR and fixing a bug in the high-level interface to
getsockopt. Kudos to Daniel for giving the solution and to Peter for
pointing out the problem.
(BTW, I found that TCP was broken in the development versions because it
used a message that was deprecated in 2.0 and removed there, so use the 2.0
series for your little exception handling project).
Paolo
gst-tcp-options.patch
Description: Binary data
- [Help-smalltalk] Error handling/checking, exceptions in general, Peter Schuller, 2002/12/20
- [Help-smalltalk] Error handling/checking, exceptions in general, Bonzini, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Peter Schuller, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Daniel A. Koepke, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Peter Schuller, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Peter Schuller, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Daniel A. Koepke, 2002/12/21
- Re: [Help-smalltalk] Error handling/checking, exceptions in general, Bonzini, 2002/12/23
Re: [Help-smalltalk] Error handling/checking, exceptions in general, Daniel A. Koepke, 2002/12/21