How to properly handle the case wiced_tcp_send_buffer() return WICED_WOULD_BLOCK?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I'm debugging a tcp transfer test that the receiver does not receive data correctly.

Then I found wiced_tcp_send_buffer() may return 16 (WICED_WOULD_BLOCK)

sometimes when test transfering data.

What is the proper way to handle the WICED_WOULD_BLOCK case?

WIll the wiced_tcp_send_buffer() call send out the data eventually even if it returns WICED_WOULD_BLOCK?

If yes, how can I tell if the send out data is done.

If not, should I call wiced_tcp_send_buffer() again to resend the data?

(My test is on FreeRTOS+LwIP with SDK-3.1.0-beta1)

Thanks.

0 Likes
5 Replies