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 <>
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.
Date User Action Args
2015-03-22 14:47:50serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, jwilk, martin.panter
2015-03-22 14:47:50serhiy.storchakasetmessageid: <>
2015-03-22 14:47:50serhiy.storchakalinkissue22350 messages
2015-03-22 14:47:50serhiy.storchakacreate