Commit 5f6effba authored by Max Lv's avatar Max Lv

Merge pull request #346 from clowwindy/nodelay

add tcp_nagle_disable in tun2socks
parents 97bd714b 97cfd1f8
......@@ -1772,6 +1772,9 @@ err_t listener_accept_func (void *arg, struct tcp_pcb *newpcb, err_t err)
// set client not closed
client->client_closed = 0;
// enable TCP_NODELAY
tcp_nagle_disable(client->pcb);
// setup handler argument
tcp_arg(client->pcb, client);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment