Message23084
| Author |
efge |
| Recipients |
| Date |
2004年11月10日.16:27:32 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
asyncore.dispatcher.send doesn't handle ECONNRESET,
whereas recv correctly does.
When such an error occurs, Zope displays for instance:
ERROR(200) ZServer uncaptured python exception, closing
channel <ZServer.HTTPServer.zhttp_channel connected
x.x.x.x:33054 at 0x4608ac2c channel#: 50679 requests:>
(socket.error:(104, 'Connection reset by peer')
[/usr/local/lib/python2.3/asynchat.py|initiate_send|218]
[/usr/local/zope/2.7.2/lib/python/ZServer/medusa/http_server.py|send|417]
[/usr/local/lib/python2.3/asyncore.py|send|337])
zhttp_channel is just a subclass of http_channel.
The exception is raised by asyncore itself when it
receives the unhandled error.
A proposed fix would be to do the same kind of handling
than is done in recv, but I don't know enough about
asyncore to know if it's correct |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:27:23 | admin | link | issue1063924 messages |
| 2007年08月23日 14:27:23 | admin | create |
|