[Twisted-web] Stuck twisted-web2 worker threads after client closes socket after sending data < content length of HTTP Post

Kamal Choudhary kamal.choudhary at gmail.com
Thu Mar 13 09:32:22 EDT 2008


Skipped content of type multipart/alternative-------------- next part -----=
---------
A non-text attachment was scrubbed...
Name: twisted_server3.py
Type: text/x-python
Size: 1673 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20080313/8=
499130e/twisted_server3-0001.py
-------------- next part --------------
------------------------------------------------------------------------
  File "C:\Python24\lib\threading.py", line 442, in __bootstrap
    self.run()

  File "C:\Python24\lib\threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/python/=
threadpool.py", line 161, in _worker

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/python/=
context.py", line 59, in callWithContext

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/python/=
context.py", line 37, in callWithContext

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/web2/ws=
gi.py", line 190, in run

  File "C:\work\twisted-head\twisted_server3.py", line 18, in dummy_app
    out_content =3D environ['wsgi.input'].read(int(environ['CONTENT_LENGTH'=
]))

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/web2/ws=
gi.py", line 74, in read

  File "/home/lotus/Desktop/pywork3.3/lm/foreign-common/src/twisted/interne=
t/threads.py", line 81, in blockingCallFromTh
read

  File "C:\Python24\lib\Queue.py", line 119, in get
    self.not_empty.wait()

  File "C:\Python24\lib\threading.py", line 203, in wait
    waiter.acquire()


More information about the Twisted-web mailing list