From 7f94c5042a5b9b5e53d9996664479413a1da0934 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 9 Sep 2011 02:46:58 +0200 Subject: ctrl: do not disable nagle algorithm until we fully support segmentation We shouldn't disable nagle, we have to finish TCP segmentation support appropriately first. --- openbsc/src/libctrl/control_if.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c index 58476ec36..7e2ae1645 100644 --- a/openbsc/src/libctrl/control_if.c +++ b/openbsc/src/libctrl/control_if.c @@ -241,15 +241,8 @@ err: static int ctrl_accept_cb(struct ipa_server_link *ipa_link, int fd) { - int ret, on = 1; struct ipa_server_conn *ipa_peer_link; - ret = setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &on, sizeof(on)); - if (ret != 0) { - LOGP(DNAT, LOGL_ERROR, "Failed to set TCP_NODELAY: %s\n", strerror(errno)); - close(fd); - return ret; - } ipa_peer_link = ipa_server_conn_create(tall_bsc_ctx, ipa_link, fd, handle_control_read, ipa_link->data); -- cgit v1.2.3