Set TCP socket created by accept to non-blocking mode

pull/3721/head
Mika Leppänen 2017-01-25 09:27:08 +02:00
parent 93f02e4fed
commit 30b6d2304d
1 changed files with 2 additions and 0 deletions

View File

@ -759,6 +759,8 @@ static nsapi_error_t mbed_lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_
(void) netconn_peer(ns->conn, &peer_addr, port);
convert_lwip_addr_to_mbed(addr, &peer_addr);
netconn_set_nonblocking(ns->conn, true);
return 0;
}