[Zope] KebasData & Zope hangs

Chris McDonough chrism@zope.com
Sat, 23 Mar 2002 22:43:17 -0500


I'd suggest replacing the use of the socket module with the "timeoutsocket"
module (in Python 2.2?) in a subclass of the urllib class that implements
urlopen.

----- Original Message -----
From: "Bak @ kedai" <kedai@kedai.com.my>
To: <marcus@localguru.de>; <zope@zope.org>
Sent: Saturday, March 23, 2002 9:17 PM
Subject: Re: [Zope] KebasData & Zope hangs


>
>
> >Hi,
> >
> >after a while the whole Zope hangs if the website where a KebasData
> >instance trys to grab its data from is down. Using version 0.6 on Zope
> >2.5.x. Any ideas?
>
>
> i think the urllib call never times out, resulting in all zope threads
being
> used
>
> how can we timeout a urllib call?
> i have wrapped the urllib call in  a try except, but that wont do anything
> useful if the urllib call has been done, would it?
>
> can i fake a time out?
> thanks for any ideas
>
> >
> >Bye
> >Marcus
> >
> >--
> >Petition for a Software Patent Free Europe
> >http://petition.eurolinux.org
> >
> >
> >_______________________________________________
> >Zope maillist  -  Zope@zope.org
> >http://lists.zope.org/mailman/listinfo/zope
> >**   No cross posts or HTML encoding!  **
> >(Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>