Skip to content

Commit 30b6d23

Browse files
author
Mika Leppänen
committed
Set TCP socket created by accept to non-blocking mode
1 parent 93f02e4 commit 30b6d23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ static nsapi_error_t mbed_lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_
759759
(void) netconn_peer(ns->conn, &peer_addr, port);
760760
convert_lwip_addr_to_mbed(addr, &peer_addr);
761761

762+
netconn_set_nonblocking(ns->conn, true);
763+
762764
return 0;
763765
}
764766

0 commit comments

Comments
 (0)