diff --git a/proxytunnel.c b/proxytunnel.c index aaf769f..5af388c 100644 --- a/proxytunnel.c +++ b/proxytunnel.c @@ -24,6 +24,8 @@ #include #include #include +#include +#include #include #include #include @@ -124,6 +126,12 @@ int tunnel_connect() { args_info.proxyport_arg ); } + { /* Increase interactivity of tunnel, patch by Ingo Molnar */ + int flag = 1; + setsockopt( sd, IPPROTO_TCP, TCP_NODELAY, + (char *)&flag, sizeof(int)); + } + /* Make sure we get warned when someone hangs up on us */ signal(SIGHUP,signal_handler);