Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Simple_HTTP_JSON HTTPWebServer-WIZwiki-W7500 HTTPWebServer-WIZwiki-W750023 WIZ750SR_test
Fork of httpServer by
Diff: HTTPConnection.cpp
- Revision:
- 1:772534e3b627
- Parent:
- 0:e59cc54df17c
- Child:
- 2:dd293a10a772
diff -r e59cc54df17c -r 772534e3b627 HTTPConnection.cpp
--- a/HTTPConnection.cpp Mon Jun 29 09:03:40 2015 +0000
+++ b/HTTPConnection.cpp Tue Jun 30 00:21:41 2015 +0000
@@ -109,7 +109,7 @@
return -1;
szLine[0] = 0;
- m_Tcp.set_blocking(false);
+ m_Tcp.set_blocking(false, 1500);
if (!m_Tcp.is_connected()) {
error("NOT COnnected anymore");
@@ -125,11 +125,11 @@
// Check that - if no character was currently received - the timeout period is reached.
if ((c == 0) || (c==-1)) {
// no character was read, so check if operation timed out
- if (tm.read_ms() > nTimeout) {
+ //if (tm.read_ms() > nTimeout) {
// Operation timed out
- INFO("Timeout occured in function 'receiveLine'.");
+ //INFO("Timeout occured in function 'receiveLine'.");
return -1;
- }
+ //}
}
// Check if line terminating character was received
