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.

Author martin.panter
Recipients GeorgeY, martin.panter
Date 2016-10-19.23:30:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476919803.37.0.393241323654.issue28447@psf.upfronthosting.co.za>
In-reply-to
Content
When I run your program on Linux (natively, and I also tried Wine), the worst behaviour I get is a busy loop as soon as a client shuts down the connection and recv() returns an empty string. I would have to force an exception in the top level code to trigger the rest of the code.

Anyway, my theory is your socket is closed in a previous handle_sock_err() call. Your KeyError from socks2addr is further evidence of this. I suggest to look at why handle_sock_err() is being called, what exceptions are being handled, where they were raised, what the contents and size of “mailbox” is, etc.

I suggest you go elsewhere for general help with Python programming (e.g. the python-list mailing list), unless it actually looks like a bug in Python.
History
Date User Action Args
2016-10-19 23:30:03martin.pantersetrecipients: + martin.panter, GeorgeY
2016-10-19 23:30:03martin.pantersetmessageid: <1476919803.37.0.393241323654.issue28447@psf.upfronthosting.co.za>
2016-10-19 23:30:03martin.panterlinkissue28447 messages
2016-10-19 23:30:03martin.pantercreate