--- /tmp/odbcserver.c 2007-11-26 14:08:42.000000000 +0100 +++ ErlangR12B-0/lib/odbc/c_src/odbcserver.c 2008-03-01 18:39:08.000000000 +0100 @@ -111,6 +111,7 @@ #include #include #include +#include #endif #include "ei.h" @@ -1539,6 +1540,7 @@ static int connect_to_erlang(const char *port) { int sock; + int one = 1; struct addrinfo hints; struct addrinfo *erlang_ai, *first; @@ -1564,6 +1566,7 @@ sock = -1; continue; } else { + setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (char *)&one, sizeof(one)); break; } }