is socket thread safe?

Donn Cave donn at u.washington.edu
Wed Feb 15 19:06:19 EST 2006


In article <F5PIf.30441$F_3.27833 at newssvr29.news.prodigy.net>,
 Bryan Olson <fakeaddress at nowhere.org> wrote:

> Is it safe for one thread to receive from a socket while
> another sends over the socket? Yes, that much is safe and
> perfectly reasonable.

I hear it works on most common platforms these days,
anyway.  I have seen socket implementations where it
didn't, though - the read would end as if interrupted
by a signal.

   Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list