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 jcea
Recipients exarkun, giampaolo.rodola, jcea, neologix, pitrou, rosslagerwall
Date 2011-11-09.21:50:34
SpamBayes Score 9.942136e-10
Marked as misclassified No
Message-id <1320875435.34.0.573701725636.issue6397@psf.upfronthosting.co.za>
In-reply-to
Content
The problem with partial writes is that the data is not an unstructured stream of bytes, but a concrete binary dump. You can not simply retry again.

My bet is that "/dev/poll" neves does partial writes.

If I am mistaken, I will bug the Illumos people to help me to solve it. So far, this seems a theorical problema.

Just in case it is not, we raise an exception and urge the programmer to report us the issue.

The other option would be to try to be clever and do things like retrying if the partial write is a multiple of the struct size, but what if it not so?.

Instead of guessing and play games, I rather prefer to know if this is actually a problem in the wild. In my tests, with 65530 sockets, I never saw this "impossible" exception.
History
Date User Action Args
2011-11-09 21:50:35jceasetrecipients: + jcea, exarkun, pitrou, giampaolo.rodola, neologix, rosslagerwall
2011-11-09 21:50:35jceasetmessageid: <1320875435.34.0.573701725636.issue6397@psf.upfronthosting.co.za>
2011-11-09 21:50:34jcealinkissue6397 messages
2011-11-09 21:50:34jceacreate