Skip to content

Commit 4d6dc58

Browse files
committed
SocketWrapper: Server: set accept() as non blocking
1 parent fbbcfe1 commit 4d6dc58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/SocketWrapper/SocketWrapper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ class ZephyrSocketWrapper {
115115
return false;
116116
}
117117

118+
zsock_ioctl(sock_fd, ZFD_IOCTL_FIONBIO);
119+
118120
if (::bind(sock_fd, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
119121
::close(sock_fd);
120122
sock_fd = -1;

0 commit comments

Comments
 (0)