]> git.mxchange.org Git - flightgear.git/commitdiff
Removed some testing cruft related to a dumb attempt to disable the nagle
authorcurt <curt>
Tue, 23 Nov 1999 13:27:08 +0000 (13:27 +0000)
committercurt <curt>
Tue, 23 Nov 1999 13:27:08 +0000 (13:27 +0000)
algorithm.

src/Network/fg_socket.cxx

index a4e300fe53917015a4cbbec016ad7cc66629bd71..152a11084341abfc005e394c83d8b95c48ef966e 100644 (file)
@@ -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 );
        }