Closed bigjohnson closed 9 years ago
Thanks for the fix! Would you mind posting a unified diff (diff -u), or even better, sending a pull request?
Here the diff -u Thanks
Alberto
diff -u ovidiucp-TinyWebServer-e46b2fd/TinyWebServer.cpp mio/TinyWebServer.cpp
--- ovidiucp-TinyWebServer-e46b2fd/TinyWebServer.cpp 2012-04-25 11:00:46.000000000 +0200 +++ mio/TinyWebServer.cpp 2012-09-03 11:16:01.000000000 +0200 @@ -20,6 +20,7 @@ // when the debugging is enabled and debugging lines are preceded by 'TWS:'
+#define READ_TIMEOUT 10
@@ -122,13 +123,18 @@ char ch; int pos; const char* header;
start_time = millis();
Serial.print(ch);
@@ -520,7 +526,11 @@ char ch;
buffer[0] = 0;
Closed!
Awesome, thanks!
On Wed, Mar 25, 2015 at 9:14 AM, Aberto Panu notifications@github.com wrote:
Closed!
— Reply to this email directly or view it on GitHub https://github.com/ovidiucp/TinyWebServer/issues/15#issuecomment-86100721 .
This confidential email is read by the NSA (at the least).
Hello, I've used your library and is very good, but I think there are two locks in some client data input that can hang the webserver. I suggest the insertion of two timeout check that can unlock the functions when client don't send expected data. I hope the code could be useful. Thanks
Alberto
Here the diff