mudgangster

Tiny, scriptable MUD client
Log | Files | Refs

commit c2aaa393263d94a09269c8c42edfa40f62dbf2c7
parent c7e027881d1cac1182f26fd91fed899e870951d6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed, 13 Mar 2019 18:09:11 +0200

Disable nagle's algorithm

Diffstat:
src/platform_network.cc | 1+
src/unix_network.cc | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/platform_network.cc b/src/platform_network.cc @@ -112,6 +112,7 @@ bool net_new_tcp( TCPSocket * sock, const NetAddress & addr, const char ** err ) } setsockoptone( sock->fd, SOL_SOCKET, SO_KEEPALIVE ); + setsockoptone( sock->fd, IPPROTO_TCP, TCP_NODELAY ); platform_init_sock( sock->fd ); diff --git a/src/unix_network.cc b/src/unix_network.cc @@ -1,4 +1,5 @@ #include <arpa/inet.h> +#include <netinet/tcp.h> #include <sys/types.h> #include <sys/select.h> #include <sys/socket.h>