Ronald Oussoren <ronaldousso...@mac.com> added the comment:

The API documentation already implies that write might not write the entire 
buffer because it returns the number of bytes actually written (just like 
os.write).  

A possible workaround on the SSL layer is hence to clamp the amount of bytes to 
write to MAX_INT (or later MAX_SSIZE_T) bytes. 

That said, this does require checking that users of the SSL layer write method 
in the stdib actually check for the number of bytes written, otherwise we'd 
exchange the exception to a silent error.

----------
nosy: +ronaldoussoren

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

Reply via email to