You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.0 KiB

From: schorsch at (Georg Mischler)
Date: Tue, 06 Apr 1999 16:35:14 GMT
Subject: Select weirdness on Solaris 2.4
References: <> <>
Message-ID: <7edd41$5gi$>
Content-Length: 1741
X-UID: 230
In article <199904011702.MAA06784 at>,
Guido van Rossum <guido at CNRI.Reston.VA.US> wrote:
> Georg Mischler wrote:
> > So the question now turns away from asyncore and towards python
> > internals. Can anyone spot the crucial difference between the
> > following C (compiled with -lsocket -lnsl) and what python does
> > with the 6 lines from above?
> Here's another suggestion. Aren't there two socket implementations in
> Solaris? One SysV compatible and one BSD compatible? Does Python
> link with the same set of libraries as your little C program?
Thanks for all the suggestions from everybody.
I finally gave up when I found the following in
if == 'mac':
# The macintosh will select a listening socket for
# write if you let it. What might this mean?
def writable (self):
return not self.accepting
def writable (self):
return 1
This showed me that the problem is not unique to my system,
and also pointed me to the solution. My derived class now
def writable(self):
return not self.accepting
Since I know that the dispatcher will never write anything
to any socket (why should it?), this is save and will end
my headaches. I still don't understand the behaviour of
select in this case, but I leave that to the socket experts
to ponder...
as-long-as-it-works-don't-ask-why-ly yrs
Georg Mischler -- simulation developper -- schorsch at -- lighting design tools --
-----------== Posted via Deja News, The Discussion Network ==---------- Search, Read, Discuss, or Start Your Own