[medusa] Re: Hideously long selects?

Jim Fulton jim@d...
Wed, 01 Sep 1999 08:06:54 -0400


Skip Montanaro wrote:
> 
> I'm using the ZServer component of Zope (but nothing else) behind an Apache
> serving as a proxy. I've noticed situations where it seems like I my
> ZServer process is hung, but when I connect to it with strace (Linux RH 5.2)
> I see it stalled in a select waiting on a lot of input file descriptors with
> an absurdly long timeout (typically 30 seconds):
> 
> select(33, [6 9 10 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 32], [], [], {30, 0}
> 
> I'm not much of a select expert, but it seems to me that this is what's
> causing my problem. Let's assume all those file descriptors are wacko web
> browsers (not a big stretch), so they aren't going to send input any time
> soon, so it will be a *long* time before Medusa falls out of the select call
> and gets around to thinking about new connections, right? Shouldn't the
> timeout be substantially shorter, 0.5-2.0 seconds perhaps?
> 
> I haven't checked the medusa code yet (that's where I'm headed next), but I
> thought I'd ask and see if I'm way off-base before I start messing around in
> detail.

Skip,

What version of Zope are you running? I beleave that this is due to a 
bug that was fixed in the Zope 2.0 beta 5. 

Jim

--
Jim Fulton mailto:jim@d... Python Powered! 
Technical Director (888) 344-4332 http://www.python.org 
Digital Creations http://www.digicool.com http://www.zope.org 

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.