mirror of https://github.com/ARMmbed/mbed-os.git
Set TCP socket created by accept to non-blocking mode
parent
93f02e4fed
commit
30b6d2304d
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue