add tcp_nagle_disable in tun2socks

This commit is contained in:
clowwindy
2015-08-18 17:27:49 +08:00
parent 97bd714beb
commit 97cfd1f869
@@ -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);