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 ronaldoussoren
Recipients ned.deily, racitup, ronaldoussoren
Date 2018-05-10.09:50:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525945858.46.0.682650639539.issue33450@psf.upfronthosting.co.za>
In-reply-to
Content
The second link contains an explanation of what's going on, and that this is unexpected behaviour of the macOS kernel.

I'm not sure what we could do about this, the blog post explains that this error can happen when send(2) is called while the socket is teared down. A possible workaround (based on reading the blog post and without fully analysing the side effects) is to treat EPROTOTYPE the same as EGAIN in the python wrappers for send/write/sendto. 

That's easier said than done though, socketmodule.c indirectly calls socket functions through a helper function that does some bookkeeping (including handling EGAIN) and is used for more than just the send calls.
History
Date User Action Args
2018-05-10 09:50:58ronaldoussorensetrecipients: + ronaldoussoren, ned.deily, racitup
2018-05-10 09:50:58ronaldoussorensetmessageid: <1525945858.46.0.682650639539.issue33450@psf.upfronthosting.co.za>
2018-05-10 09:50:58ronaldoussorenlinkissue33450 messages
2018-05-10 09:50:58ronaldoussorencreate