diff --git a/src/server.c b/src/server.c index 9d67876..285639f 100644 --- a/src/server.c +++ b/src/server.c @@ -45,6 +45,7 @@ #include #include #include +#include #ifdef ENABLE_TLS #include @@ -1113,6 +1114,9 @@ static void on_connection(void* obj) goto accept_failure; } + int one = 1; + setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one)); + client->net_stream = stream_new(fd, on_client_event, client); if (!client->net_stream) { nvnc_log(NVNC_LOG_WARNING, "OOM");