Enable TCP_NODELAY
This commit is contained in:
@@ -4732,6 +4732,12 @@ irc_finish_connection (struct server *s, int socket)
|
||||
{
|
||||
struct app_context *ctx = s->ctx;
|
||||
|
||||
// Most of our output comes from the user one full command at a time and we
|
||||
// use output buffering, so it makes a lot of sense to avoid these delays
|
||||
int yes = 1;
|
||||
soft_assert (setsockopt (socket, IPPROTO_TCP, TCP_NODELAY,
|
||||
&yes, sizeof yes) != -1);
|
||||
|
||||
set_blocking (socket, false);
|
||||
s->socket = socket;
|
||||
s->transport = get_config_boolean (s->config, "tls")
|
||||
|
||||
Reference in New Issue
Block a user