diff --git a/src/DDClientLibCpp/DD_client.cc b/src/DDClientLibCpp/DD_client.cc index 4d0de8a..dbe2f94 100644 --- a/src/DDClientLibCpp/DD_client.cc +++ b/src/DDClientLibCpp/DD_client.cc @@ -25,6 +25,7 @@ #include #include #include +#include #include "DD.hh" @@ -223,6 +224,11 @@ int DD_Client::GetSocket() perror("Socket:"); return(-1); } + int flags = 1; + if (setsockopt(SocketID, SOL_TCP, TCP_NODELAY, (void *)&flags, sizeof(flags))) { + perror("ERROR: setsocketopt(), TCP_NODELAY"); return(-1); + } + /* Filling full internet address for socket "name" * this address will be used to get communication point */ -- libgit2 0.21.2