This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncore - don't throw a traceback when a client disconnects in echo server example
Type: Stage: patch review
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, georg.brandl, giampaolo.rodola, sandro.tosi
Priority: low Keywords: patch

Created on 2011-02-17 18:22 by sandro.tosi, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
asyncore-notraceback-py3k.patch sandro.tosi, 2011-02-17 18:22
Messages (6)
msg128744 - (view) Author: Sandro Tosi (sandro.tosi) * (Python committer) Date: 2011-02-17 18:22
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])
msg128745 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2011-02-17 18:47
+1
msg128760 - (view) Author: Sandro Tosi (sandro.tosi) * (Python committer) Date: 2011-02-17 22:00
well, since we are at it, sed 's/abasic/a basic/' in the first line of echo server example; I'm too lazy to regenerate the patch tho :)
msg129375 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2011-02-25 14:56
Fixed.
msg129380 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2011-02-25 15:16
Please add the revision number when fixing.
msg129403 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2011-02-25 19:27
Sorry: fixed in r88581.
History
Date User Action Args
2022-04-11 14:57:13adminsetgithub: 55441
2011-02-25 19:27:31giampaolo.rodolasetnosy: georg.brandl, giampaolo.rodola, sandro.tosi, docs@python
messages: + msg129403
2011-02-25 15:16:54georg.brandlsetnosy: + georg.brandl
messages: + msg129380
2011-02-25 14:56:09giampaolo.rodolasetstatus: open -> closed

messages: + msg129375
resolution: fixed
nosy: giampaolo.rodola, sandro.tosi, docs@python
2011-02-23 18:44:24sandro.tosisetassignee: sandro.tosi -> docs@python

nosy: + docs@python
2011-02-17 22:00:03sandro.tosisetnosy: giampaolo.rodola, sandro.tosi
messages: + msg128760
2011-02-17 18:47:25giampaolo.rodolasetnosy: giampaolo.rodola, sandro.tosi
messages: + msg128745
2011-02-17 18:23:00sandro.tosisetnosy: giampaolo.rodola, sandro.tosi
components: + Documentation
2011-02-17 18:22:41sandro.tosicreate