summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-09-09 02:46:58 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-09-09 02:59:25 +0200
commit7f94c5042a5b9b5e53d9996664479413a1da0934 (patch)
treecadee7c19d19898534e38280d58c25bb6afd86b4
parent85d70bf9694acf7f9173f035aed8ac185f23cc77 (diff)
ctrl: do not disable nagle algorithm until we fully support segmentationpablo/ctrl-updates
We shouldn't disable nagle, we have to finish TCP segmentation support appropriately first.
-rw-r--r--openbsc/src/libctrl/control_if.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/openbsc/src/libctrl/control_if.c b/openbsc/src/libctrl/control_if.c
index 58476ec..7e2ae16 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);