On Tue, Sep 13, 2011 at 12:31:29PM -0000, John A Meinel wrote:
> (If you do select.select([r], [], []) and the far side of r has been closed,
> would select hang forever?, maybe I need to pass it in the last list as well.)
Beware Windows (and diverse platforms in general): the third argument to select
has a subtly different meaning there. I forget the exact details, just that
Linux tends to use the exceptfds set for fewer things (e.g. when a TCP URG bit
was received?), and Windows tends to signal some connection errors there as
well.
Basically, be extra sure to test on both Windows and Linux :)
On Tue, Sep 13, 2011 at 12:31:29PM -0000, John A Meinel wrote:
> (If you do select.select([r], [], []) and the far side of r has been closed,
> would select hang forever?, maybe I need to pass it in the last list as well.)
Beware Windows (and diverse platforms in general): the third argument to select
has a subtly different meaning there. I forget the exact details, just that
Linux tends to use the exceptfds set for fewer things (e.g. when a TCP URG bit
was received?), and Windows tends to signal some connection errors there as
well.
Basically, be extra sure to test on both Windows and Linux :)