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 vinay.sajip
Recipients Henrique Andrade, vinay.sajip, vstinner
Date 2016-02-07.18:57:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454871437.87.0.477227769814.issue25459@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with your suggested fix is that if you keep getting EAGAIN, the handler will appear to hang. If you want to suggest that maybe we limit the number of tries, then what number of retries would you pick, and why? Also, a caller might want to know about EAGAIN, so I'm not sure you'd want to (effectively) swallow it in the handler.

Perhaps a different strategy (than just trying for ever) would be better. If you know the application is unusual in having a SIGPIPE handler and you think this is a contributory factor, why not just subclass the handler, add a more resilient emit() and use that in your application?
History
Date User Action Args
2016-02-07 18:57:17vinay.sajipsetrecipients: + vinay.sajip, vstinner, Henrique Andrade
2016-02-07 18:57:17vinay.sajipsetmessageid: <1454871437.87.0.477227769814.issue25459@psf.upfronthosting.co.za>
2016-02-07 18:57:17vinay.sajiplinkissue25459 messages
2016-02-07 18:57:17vinay.sajipcreate