Infinite stall on WiFiWebServer sample / MKR 1000 #318
Labels
topic: documentation
Related to documentation for the project
type: imperfection
Perceived defect in any part of project
Using MKR 1000, Firmware version 19.6.1, WiFi101 library version 0.16.1
The sample web server code will stall forever as it waits for data never supplied by the library. This can be reproduced by running the server and continuously connecting to it from a web browser from another machine (tried with Safari 15.1 from OSX, don't think it matters). Simultaneously hitting the server from multiple machines may make the repro easier/faster, but it happens very consistently and within a few minutes for me even from one client, assuming it is constantly hitting the server with requests (i.e. keep clicking the refresh button on the browser).
During the stall, WiFiClient.connected() will return true, but WiFiClient.available() will keep returning false forever, creating an infinite loop in the sample code.
Sketch included at the bottom, but is practically identical to the sample code at https://www.arduino.cc/en/Tutorial/LibraryExamples/Wifi101WiFiWebServer. The issue happens with the sample code as well.
Minimal repro sketch:
The text was updated successfully, but these errors were encountered: