Skip to content

Commit 4d31455

Browse files
author
Veijo Pesonen
committed
tests-netsocket-udp: UDPSOCKET_ECHOTEST_NONBLOCK restores non-blocking
Fixes a bug where after dropping bad packets receiver doesn't restore the socket back to non-blocking state as it's supposed to.
1 parent cc94690 commit 4d31455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/netsocket/udp/udpsocket_echotest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void udpsocket_echotest_nonblock_receiver(void *receive_bytes)
118118
}
119119
}
120120

121-
drop_bad_packets(sock, -1); // timeout equivalent to set_blocking(false)
121+
drop_bad_packets(sock, 0); // timeout equivalent to set_blocking(false)
122122

123123
tx_sem.release();
124124
}

0 commit comments

Comments
 (0)