New submission from Sandro Tosi <sandro.t...@gmail.com>:

Hi, following up 
http://mail.python.org/pipermail/docs/2011-February/003095.html I'm attaching a 
simple patch to avoid a traceback similar to this when a client disconnects:

error: uncaptured python exception, closing channel <__main__.EchoHandler 
127.0.0.1:41884 at 0x150ae60> (<class 'socket.error'>:[Errno 9] Bad file 
descriptor [/home/morph/python-dev/py3k/Lib/asyncore.py|read|81] 
[/home/morph/python-dev/py3k/Lib/asyncore.py|handle_read_event|440] 
[<stdin>|handle_read|4] [/home/morph/python-dev/py3k/Lib/asyncore.py|send|550] 
[/home/morph/python-dev/py3k/Lib/asyncore.py|initiate_send|537] 
[/home/morph/python-dev/py3k/Lib/asyncore.py|send|367])

----------
assignee: sandro.tosi
files: asyncore-notraceback-py3k.patch
keywords: patch
messages: 128744
nosy: giampaolo.rodola, sandro.tosi
priority: low
severity: normal
stage: patch review
status: open
title: asyncore - don't throw a traceback when a client disconnects in echo 
server example
Added file: http://bugs.python.org/file20778/asyncore-notraceback-py3k.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to