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 serhiy.storchaka
Recipients jwilk, martin.panter, pitrou, serhiy.storchaka
Date 2015-03-22.14:47:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427035670.35.0.503021511728.issue22350@psf.upfronthosting.co.za>
In-reply-to
Content
I doubt that it is good idea to close connection on *any* error. For example in _getresp() resp.decode() can raise an exception, but this failure isn't related to the ability of sending QUIT and other commands.

Sample error handling in your first message looks more reliable. Set special flags after failing command (but only if error is related to the connection), and ignore QUIT errors if it is set. After successful command this flag should be reset.
History
Date User Action Args
2015-03-22 14:47:50serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, jwilk, martin.panter
2015-03-22 14:47:50serhiy.storchakasetmessageid: <1427035670.35.0.503021511728.issue22350@psf.upfronthosting.co.za>
2015-03-22 14:47:50serhiy.storchakalinkissue22350 messages
2015-03-22 14:47:50serhiy.storchakacreate