Removed some testing cruft related to a dumb attempt to disable the nagle
algorithm.
This commit is contained in:
parent
cd5ab3222a
commit
796aa8b352
1 changed files with 0 additions and 13 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue