File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ void TCPSOCKET_SEND_TIMEOUT()
3333 TEST_FAIL ();
3434 return ;
3535 }
36+ sock.set_blocking (false );
3637
3738 int err;
3839 Timer timer;
@@ -42,7 +43,7 @@ void TCPSOCKET_SEND_TIMEOUT()
4243 timer.start ();
4344 err = sock.send (tx_buffer, sizeof (tx_buffer));
4445 timer.stop ();
45- if ((err == sizeof (tx_buffer)) &&
46+ if ((err == sizeof (tx_buffer) || err == NSAPI_ERROR_WOULD_BLOCK ) &&
4647 (timer.read_ms () <= 800 )) {
4748 continue ;
4849 }
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ void TLSSOCKET_SEND_TIMEOUT()
3434 TEST_FAIL ();
3535 return ;
3636 }
37+ sock.set_blocking (false );
3738
3839 int err;
3940 Timer timer;
@@ -43,7 +44,7 @@ void TLSSOCKET_SEND_TIMEOUT()
4344 timer.start ();
4445 err = sock.send (tx_buffer, sizeof (tx_buffer));
4546 timer.stop ();
46- if ((err == sizeof (tx_buffer)) &&
47+ if ((err == sizeof (tx_buffer) || err == NSAPI_ERROR_WOULD_BLOCK ) &&
4748 (timer.read_ms () <= 800 )) {
4849 continue ;
4950 }
You can’t perform that action at this time.
0 commit comments