Merge "Configure the number of channels for SCTP servers too"
diff --git a/aos/network/sctp_client.cc b/aos/network/sctp_client.cc
index 33115be..273cff8 100644
--- a/aos/network/sctp_client.cc
+++ b/aos/network/sctp_client.cc
@@ -32,9 +32,9 @@
}
{
- // Servers send promptly. Clients don't.
- // TODO(austin): Revisit this assumption when we have time sync.
- int on = 0;
+ // Turn off the NAGLE algorithm so the timestamps heading back across the
+ // network arrive promptly.
+ int on = 1;
PCHECK(setsockopt(fd(), IPPROTO_SCTP, SCTP_NODELAY, &on, sizeof(int)) == 0);
}