search for: sshnodelay

Displaying 1 result from an estimated 1 matches for "sshnodelay".

Did you mean: so_nodelay
2006 Jan 24
4
sftp performance problem, cured by TCP_NODELAY
...ould set. The proprietary ssh seems to already have this option. Attached an LD_PRELOAD hack to set TCP_NODELAY. For me this hack doubles the download speed of a 100MB file over a 100Mbps network. Miklos ----------------------------------------------------------------------- /* gcc -Wall -W -o sshnodelay.so --shared -ldl sshnodelay.c */ #define _GNU_SOURCE #include <dlfcn.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> int connect(int sock, const struct sockaddr *addr, socklen_t addrlen) { int (*next_connect)(int, const struct sockaddr *, soc...