From: curt Date: Tue, 23 Nov 1999 13:27:08 +0000 (+0000) Subject: Removed some testing cruft related to a dumb attempt to disable the nagle X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=796aa8b3520672274cbdb26c4d4784161be962d3;p=flightgear.git Removed some testing cruft related to a dumb attempt to disable the nagle algorithm. --- diff --git a/src/Network/fg_socket.cxx b/src/Network/fg_socket.cxx index a4e300fe5..152a11084 100644 --- a/src/Network/fg_socket.cxx +++ b/src/Network/fg_socket.cxx @@ -276,19 +276,6 @@ int FGSocket::write( char *buf, int length ) { FG_LOG( FG_IO, FG_ALERT, "Error: accept() failed in write()" ); return 0; - int flag = 1; - int result = setsockopt(sock, /* socket affected */ - IPPROTO_TCP, /* set option at TCP level */ - TCP_NODELAY, /* name of option */ - (char *) &flag,/* the cast is historical - cruft */ - sizeof(int)); /* length of option value */ - if (result < 0) { - FG_LOG( FG_IO, FG_ALERT, - "Error: setsockopt() failed in write()" ); - return 0; - - } } else { client_connections.push_back( msgsock ); }