From ae4801bba6a5b12ead2cddcbb96cecffeadcdbae Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Mon, 31 Oct 2016 22:21:15 +0100 Subject: [PATCH] Bugfix: make sure the TCP connection is polled immediately after tcp_socket_send() is called so that the TCP segment goes out directly --- core/net/ip/tcp-socket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/net/ip/tcp-socket.c b/core/net/ip/tcp-socket.c index cd26634a1..f709a3dfb 100644 --- a/core/net/ip/tcp-socket.c +++ b/core/net/ip/tcp-socket.c @@ -357,6 +357,8 @@ tcp_socket_send(struct tcp_socket *s, s->output_senddata_len = s->output_data_len; } + tcpip_poll_tcp(s->c); + return len; } /*---------------------------------------------------------------------------*/