summaryrefslogtreecommitdiffstats
path: root/PICA_node.c
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-19 14:47:51 +0400
committerAnton <anton@picapica.im>2026-08-19 14:47:51 +0400
commitc9f6051380f4edf5f7ac336501ecb1f32946dc6e (patch)
tree4a16463532ccbe03ba823b277ba7a0ee4567f38e /PICA_node.c
parent60c17c433759d282663497704998d81bab800668 (diff)
downloadpica-pica-c9f6051380f4edf5f7ac336501ecb1f32946dc6e.tar.gz
pica-pica-c9f6051380f4edf5f7ac336501ecb1f32946dc6e.zip
pica-client: UDP transport for calls
Diffstat (limited to 'PICA_node.c')
-rw-r--r--PICA_node.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/PICA_node.c b/PICA_node.c
index 3f61fd0..12a0383 100644
--- a/PICA_node.c
+++ b/PICA_node.c
@@ -2671,6 +2671,10 @@ void process_listen_read(evutil_socket_t listener, short event, void *arg)
nc->state = PICA_NEWCONN_WAITANONTLSACCEPT;
IOCTLSETNONBLOCKINGSOCKET(s, 1);
+ /* the node relays c2c data, so Nagle delays here are added to
+ * the delay of every message between the two clients
+ */
+ SETTCPNODELAY(s);
PICA_debug1("accepted connection from %.16s, new socket %i", inet_ntoa(addr.sin_addr), s);//IPv6