Adaptation of the HttpServer by user yueee_yt. This version has improved handling of the HTTP headers (**NOTE**: There are limitations with this implementation and it is not fully functional. Use it only as a starting point.)
Dependents: DMSupport DMSupport DMSupport DMSupport
Fork of DM_HttpServer by
Diff: HTTPServer.h
- Revision:
- 6:7b3320c34654
- Parent:
- 4:1b6b021ee21d
- Child:
- 10:c1c8276af541
diff -r b8f6a11c70db -r 7b3320c34654 HTTPServer.h --- a/HTTPServer.h Sat Feb 22 05:51:59 2014 +0000 +++ b/HTTPServer.h Tue Dec 02 15:04:43 2014 +0000 @@ -250,7 +250,7 @@ if (threads[t]) { threads[t]->signal_set(1); } else { - threads[t] = new Thread(HTTPServerChild, (void*)&clients[t]); + threads[t] = new Thread(HTTPServerChild, (void*)&clients[t], osPriorityNormal, DEFAULT_STACK_SIZE*2); } #ifdef _DEBUG_HTTP_SERVER_H printf("Forked %d\r\n", t); @@ -262,7 +262,7 @@ if (xthread) { xthread->signal_set(1); } else { - xthread = new Thread(HTTPServerCloser, (void*)&xclient); + xthread = new Thread(HTTPServerCloser, (void*)&xclient, osPriorityNormal, DEFAULT_STACK_SIZE*2); } #ifdef _DEBUG_HTTP_SERVER_H printf("Connection full\r\n");