mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
i hate my kbd. Real fix
This commit is contained in:
parent
a65bf395ae
commit
4ecc1441b9
@ -45,6 +45,7 @@ def sendfile(fdout, fdin, offset, nbytes):
|
||||
_sendfile.argtypes = [ctypes.c_int, ctypes.c_int, ctypes.c_uint64,
|
||||
ctypes.c_uint64, ctypes.c_voidp,
|
||||
ctypes.POINTER(ctypes.c_uint64), ctypes.c_int]
|
||||
_sbytes = ctypes.c_uint64()
|
||||
result = _sendfile(fdin, fdout, offset, nbytes, None, _sbytes, 0)
|
||||
if result == -1:
|
||||
e = ctypes.get_errno()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user