Vinay Sajip added the comment:

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?

----------
status: open -> pending

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25459>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to