[Zope] IsDaZope: a Zope checker and relauncher

Jerome Alet alet@unice.fr
Wed, 26 Apr 2000 10:44:27 +0200 (MET DST)


On Wed, 26 Apr 2000, Oleg Broytmann wrote:

> On Wed, 26 Apr 2000, Jerome Alet wrote:
> > unfortunately my program doesn't detect it, it seems that urllib.urlopen()
> > blocks and doesn't allow my alarm handler to be called in this situation.
> 
>    Python does not deliver signals while hang in C (or even worse, in
> system calls). Well-known Python deficency :(
>    Go multiprocess - either threading or forking. Or select()...

Yes, I've found the problem just after (unfortunately) having posted my
previous message: the socket module, used by httplib which is itself used
by urllib, is not a pure python module, but a C module. 

I knew the problem because I had to deal with it before.

I'm currently downloading the python source tarball to look at the socket
module to know if I can use threads or if they are blocked during the
connect the same way that signals are. 

thanks for the help, I'll try to post a new version today.

bye,
Jerome