[Zope] Fwd: Re: [Zope-dev] Zope Server hanging :-( - Implement timeout

Júlio Dinis Silva juliodinis@hotmail.com
Fri, 04 May 2001 12:31:33 +0100


>From: Chris Withers <chrisw@nipltd.com>
>To: JXlio Dinis Silva <juliodinis@hotmail.com>
>Subject: Re: [Zope-dev] Zope Server hanging :-(
>Date: Fri, 04 May 2001 11:36:06 +0100
>
>JXlio Dinis Silva wrote:
> >
> > I've implemented on my running zopes the timeoutsocket.py module
> > http://www.timo-tasi.org/python/timeoutsocket.py
> > -copy timeoutsocket.py to your zope home
> > -on bottom of z2.py call, before the "# Start Medusa, Ye Hass!",
> >
> > import timeoutsocket
> > timeoutsocket.setDefaultSocketTimeout(120)
> >
> > and after that any script you have that uses a httplib, smtplib, etc
> > only runs for 120 seconds in case it falls into zombie, off course
> > you can tune this period of time according to your needs.
>
>wow... thanks, this could be really really useful :-)
>
>Chris

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.