Merge pull request #2502 from c1728p9/fix_lwip_blocking_recv

LWIP - fix recv blocking send on accepted sockets
pull/2550/head
Sam Grove 2016-08-25 09:25:01 -05:00 committed by GitHub
commit 2ecb560eb7
1 changed files with 1 additions and 0 deletions

View File

@ -304,6 +304,7 @@ static int lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_t server, nsapi
return lwip_err_remap(err);
}
netconn_set_recvtimeout(ns->conn, 1);
*(struct lwip_socket **)handle = ns;
(void) netconn_peer(ns->conn, (ip_addr_t *)addr->bytes, port);