Message214605
I thought you were kidding concerning "print()" -- thus I started using "python -m trace -t httpd.py" >trace 2>&1. The hanging does not occur when tracing (however, things slow down immensely naturally)!
When breaking the httpd.py while it is not serving anymore, the stack trace looks always like this:
^CTraceback (most recent call last):
File "httpd.py", line 3, in <module>
s.serve_forever()
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py", line 237, in serve_forever
poll_interval)
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/socketserver.py", line 155, in _eintr_retry
return func(*args)
KeyboardInterrupt
I will try to add some "print()" before the "return func(*args)"... |
|
Date |
User |
Action |
Args |
2014-03-23 16:51:12 | chobeiry | set | recipients:
+ chobeiry, ronaldoussoren, pitrou, ned.deily |
2014-03-23 16:51:12 | chobeiry | set | messageid: <1395593472.47.0.245803766038.issue21035@psf.upfronthosting.co.za> |
2014-03-23 16:51:12 | chobeiry | link | issue21035 messages |
2014-03-23 16:51:12 | chobeiry | create | |
|