issue #139: bump kernel socket buffer size to 128kb

This allows us to write 128kb at a time towards SSH, but it doesn't help
with sudo, where the ancient tty layer is always used.
wip-fakessh-exit-status
David Wilson 7 years ago
parent 728a0da8a4
commit eba12e2ee2

@ -123,6 +123,12 @@ def close_nonstandard_fds():
def create_child(*args):
parentfp, childfp = socket.socketpair()
parentfp.setsockopt(socket.SOL_SOCKET,
socket.SO_SNDBUF,
mitogen.core.CHUNK_SIZE)
childfp.setsockopt(socket.SOL_SOCKET,
socket.SO_RCVBUF,
mitogen.core.CHUNK_SIZE)
pid = os.fork()
if not pid:
mitogen.core.set_block(childfp.fileno())

Loading…
Cancel
Save