Merge pull request #346 from clowwindy/nodelay

add tcp_nagle_disable in tun2socks
This commit is contained in:
Max Lv
2015-08-18 17:34:47 +08:00
@@ -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);