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.
Fork of httpServer by
Diff: HTTPServer.cpp
- Revision:
- 1:772534e3b627
- Parent:
- 0:e59cc54df17c
--- a/HTTPServer.cpp Mon Jun 29 09:03:40 2015 +0000
+++ b/HTTPServer.cpp Tue Jun 30 00:21:41 2015 +0000
@@ -26,7 +26,7 @@
void HTTPServer::StdErrorHandler(HTTPConnection::HTTPMessage& msg, TCPSocketConnection& tcp)
{
char echoHeader[256];
- tcp.set_blocking(true, 1500);
+ tcp.set_blocking(false, 1500);
sprintf(echoHeader,"HTTP/1.0 404 Fail\r\nConnection: close\r\nContent-Length: %d\r\nContent-Type: text/html\r\nServer: mbed embedded\r\n\n\r",strlen(szStdErrorPage));
tcp.send(echoHeader, strlen(echoHeader));
tcp.send((char*)szStdErrorPage, strlen(szStdErrorPage));
@@ -61,8 +61,8 @@
INFO("Connected !");
// set into non blocking operation
- m_Svr.set_blocking(false, 100);
-
+ m_Svr.set_blocking(false, 1500);
+
return true;
}
