New submission from Andrew Svetlov <andrew.svet...@gmail.com>:

On Linux maximum data size for sendfile call is 0x7ffff000: 

sendfile() will transfer at most 0x7ffff000 (2,147,479,552) bytes,  returning  
the  number  of  bytes  actually
transferred.  (This is true on both 32-bit and 64-bit systems.)

Limiting max block size to this value on all OSes makes sense: splitting 
transferring the very huge file into several syscalls doesn't hurt performance 
anyway.

Windows uses DWORD for size in TransmitFile, so the size is limited as well.

----------
components: macOS
messages: 329366
nosy: asvetlov, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Limit max sendfile chunk to 0x7ffff000
versions: Python 3.7, Python 3.8

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

Reply via email to