summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-12-10 10:34:08 +0100
committerDan Winship <danw@gnome.org>2013-12-10 10:34:08 +0100
commitdd3e2f4d9be661a5fae96c81618fb25c438916da (patch)
tree1705a91fae33bf2b0c8cfb3f81ace0dadaf82e95
parentc2c2ecbf7d021bb5445a205ec8c66286afaf1008 (diff)
downloadlibsoup-dd3e2f4d9be661a5fae96c81618fb25c438916da.tar.gz
SoupSocket: set TCP_NODELAY on sockets
The old SoupSocket did this but it accidentally got removed in the GSocket port because I thought it didn't matter. It does. Noticed by Andy Wingo.
-rw-r--r--libsoup/soup-socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-socket.c b/libsoup/soup-socket.c
index c101fa52..e0748fd1 100644
--- a/libsoup/soup-socket.c
+++ b/libsoup/soup-socket.c
@@ -182,6 +182,7 @@ finish_socket_setup (SoupSocketPrivate *priv)
priv->ostream = g_object_ref (g_io_stream_get_output_stream (priv->iostream));
g_socket_set_timeout (priv->gsock, priv->timeout);
+ g_socket_set_option (priv->gsock, IPPROTO_TCP, TCP_NODELAY, TRUE, NULL);
}
static void