problem: zope freezes with httplib
hi! we have a problem with a project where zope retrieves web pages from another http server using httplib. the problem is, that at least in some cases Zope freezes until a request is completed (the whole process, all threads). we believe it could be a problem with the threads, however we have no approach to solve this problem. here are the infos: Zope Version (Zope 2.4.1 (source release, python 2.1, linux2), python 2.1.1, linux2) Python Version 2.1.1 (#3, Jan 24 2002, 17:10:04) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-98)] System Platform linux2 running with ZServer ciao, basti -- Sebastian Lühnsdorf beehive KG sfl@beehive-eu.com
On Monday 09 Sep 2002 12:43 pm, Sebastian Lühnsdorf wrote:
hi!
we have a problem with a project where zope retrieves web pages from another http server using httplib. the problem is, that at least in some cases Zope freezes until a request is completed (the whole process, all threads). we believe it could be a problem with the threads, however we have no approach to solve this problem. here are the infos:
It might be a dumb suggestion, but are you sure that it is not just processing four such requests concurrently? the publisher thread will remain blocked until your httplib request completes or times out, even if its client browser has disconnected. (four by default, or whatever number of publisher threads you are running.)
=?ISO-8859-1?Q?Sebastian_L=FChnsdorf?= writes:
we have a problem with a project where zope retrieves web pages from another http server using httplib. the problem is, that at least in some cases Zope freezes until a request is completed (the whole process, all threads). You have already been told that all your worker thread may be busy.
If this is not the case (you can use the "-M" logging option, to find out), then it would indicate a problem somewhere in Python's socket implementation (under some circumstances, the GIL would not be released). Dieter
participants (3)
-
Dieter Maurer -
Sebastian Lühnsdorf -
Toby Dickenson