Skip to content

Commit 13971b3

Browse files
committed
Disable nagle
1 parent 7fc311b commit 13971b3

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

iop/imports.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ I_lwip_recvfrom
4141
I_lwip_close
4242
I_lwip_bind
4343
I_lwip_accept
44+
I_lwip_setsockopt
4445
ps2ip_IMPORTS_end
4546

4647
sifcmd_IMPORTS_start

iop/net_fio.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,13 @@ int pko_file_serv(void *argv)
752752
ret = disconnect(pko_fileio_sock);
753753
dbgprintf("close ret %d\n", ret);
754754
}
755+
756+
/* Disable Nagle on IOP side so small request packets are sent
757+
* immediately without waiting for previous data to be ACKed. */
758+
{
759+
int one = 1;
760+
setsockopt(client_sock, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
761+
}
755762
pko_fileio_sock = client_sock;
756763
}
757764

0 commit comments

Comments
 (0)