![](/media/cache/profiles/100d5d9191f185eeb98d6e291756954a.50x50_q85.png)
Measure system
Dependencies: EthernetNetIf mbed RF12B
Diff: server/HTTPServer.cpp
- Revision:
- 2:afe5826411e3
- Parent:
- 1:b26ab2467b1a
- Child:
- 3:799d8c61fb03
--- a/server/HTTPServer.cpp Thu Mar 10 19:56:45 2011 +0000 +++ b/server/HTTPServer.cpp Sun Mar 27 07:56:59 2011 +0000 @@ -77,9 +77,10 @@ if (HandlerActive) { printf("0-TCP-Throwing away TCP IP request\r\n"); + delete pTCPSocket; return; } - + /* char buf[40]; string tempstring (""); ctTime = time(NULL); @@ -88,10 +89,10 @@ tempstring +="TCP-Con: "; tempstring += buf; LogWrite(tempstring); - + */ HandlerActive = true; HTTPRequestDispatcher* pDispatcher = new HTTPRequestDispatcher(this, pTCPSocket); //TCPSocket ownership is passed to dispatcher - //The dispatcher object will destroy itself when done, or will be destroyed on Server destruction + //The dispatcher object will destroy itself when done, or will be destroyed on Server destruction } printf("0-TCP-TCPSocket ownership is passed to Dispatcher\r\n");