Pico W, uselect.select and uselect.poll blocking intermittently when timeout specified #9480
Replies: 2 comments 12 replies
-
How long does the call to select/poll block for, beyond the specified timeout? Does it block forever? Using Can you share code that shows the problem? |
Beta Was this translation helpful? Give feedback.
-
The fact that your problem occurs when RSSI is low suggests that you may be encountering brief WiFi outages. Writing applications capable of handling WiFi outages is quite difficult - see these notes. The approach we used in developing asynchronous MQTT differed from yours in that we used nonblocking sockets rather than |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am running into some issues where I am seeing uselect.select and uselect.poll (or ipoll) blocking even when I specify a timeout in the call. This behaviour is intermittent, with occurrences sometimes minutes apart, but generally hours apart.
What is helping as a workaround is to set the socket as non-blocking as well, by setting a timeout on the socket. (As a rule I am setting the timeout on the socket to be 500ms longer than the timeout in my call to poll or select. I then occasionally get an Exception - ETIMEOUT.)
Has anybody else seen this behaviour?
Regards,
Geoff.
Beta Was this translation helpful? Give feedback.
All reactions