1
0
Fork 0

Removed some testing cruft related to a dumb attempt to disable the nagle

algorithm.
This commit is contained in:
curt 1999-11-23 13:27:08 +00:00
parent cd5ab3222a
commit 796aa8b352

View 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 );
}