Commit 97cfd1f8 authored by clowwindy's avatar clowwindy

add tcp_nagle_disable in tun2socks

parent 97bd714b
...@@ -1772,6 +1772,9 @@ err_t listener_accept_func (void *arg, struct tcp_pcb *newpcb, err_t err) ...@@ -1772,6 +1772,9 @@ err_t listener_accept_func (void *arg, struct tcp_pcb *newpcb, err_t err)
// set client not closed // set client not closed
client->client_closed = 0; client->client_closed = 0;
// enable TCP_NODELAY
tcp_nagle_disable(client->pcb);
// setup handler argument // setup handler argument
tcp_arg(client->pcb, client); 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