socket programming strategy
dave at pythonapocrypha.com
Sun Jan 19 05:24:38 CET 2003
On Sat, 18 Jan 2003, Jeethu Rao wrote:
> Only and very un portable. So, I started using
> Timothy O'Malley's timeoutsocket module. But, I'm
> Not quite satisfied (and dissatisfaction is quite a
> Pain in the mind).
What problems are you having with timeoutsocket?
> Today, I hit upon the idea of using
> select() calls inside threads, waiting for just one socket.
> And I believe select() is a lot more efficient than simple
> Busy waiting loops. For Unix, I assume errno.EWOULDBLOCK is
> Quite the same as WSAEWOULDBLOCK.
> Is this plan workable? Or have I missed something?
Hehe... yeah it's workable: it's exactly what timeoutsocket does. :)
More information about the Python-list