Commit cee7f22
committed
Explicitly set accepted socket to blocking
The Python documentation states that otherwise, the blocking status
of the newly accepted socket is implementation-defined:
> if the listening socket is in non-blocking mode, whether the socket
> returned by accept() is in blocking or non-blocking mode is operating
> system-dependent. If you want to ensure cross-platform behaviour,
> it is recommended you manually override this setting.
<https://docs.python.org/3/library/socket.html#socket-timeouts>
When the connected socket is non-blocking (as it is on picow), the http
library works erratically, depending whether the request has already
arrived by the time recvfrom_into call occurs.
Closes: adafruit/circuitpython#70861 parent ba2da43 commit cee7f22
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
| |||
0 commit comments