This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088
Fork of libMiMic by
Diff: core/net/httpd/NyLPC_cHttpdThread.c
- Revision:
- 79:baa21f8763cf
- Parent:
- 43:a182f2b5ff41
- Child:
- 109:18f12ac01097
--- a/core/net/httpd/NyLPC_cHttpdThread.c Mon Jun 23 04:45:57 2014 +0000 +++ b/core/net/httpd/NyLPC_cHttpdThread.c Tue Jun 24 09:37:24 2014 +0000 @@ -3,14 +3,13 @@ #include "NyLPC_cHttpdConnection_protected.h" #include "NyLPC_cHttpdThread_protected.h" -#define LIMIT_OF_PERSISTENT_CONNECTION (NyLPC_cNet_NUMBER_OF_THREAD-1) static int server(void* p); void NyLPC_cHttpdThread_initialize(NyLPC_TcHttpdThread_t* i_inst,NyLPC_TcHttpd_t* i_parent,NyLPC_TInt32 i_prio) { NyLPC_cHttpdConnection_initialize(&(i_inst->_connection),i_parent); - NyLPC_cThread_initialize(&(i_inst->_super),NyLPC_TcHttpdThread_SIZE_OF_THREAD_STACK,i_prio); + NyLPC_cThread_initialize(&(i_inst->_super),NyLPC_cHttpdThread_SIZE_OF_THREAD_STACK,i_prio); } void NyLPC_cHttpdThread_finalize(NyLPC_TcHttpdThread_t* i_inst) { @@ -57,7 +56,7 @@ break; } //持続性接続の初期モードを設定 - if(NyLPC_cHttpd_getNumOfConnection(inst->_parent_httpd)>LIMIT_OF_PERSISTENT_CONNECTION){ + if(NyLPC_cHttpd_getNumOfConnection(inst->_parent_httpd)>NyLPC_cHttpd_MAX_PERSISTENT_CONNECTION){ NyLPC_cHttpdConnection_setConnectionMode(inst,NyLPC_TcHttpdConnection_CONNECTION_MODE_CLOSE); }else{ NyLPC_cHttpdConnection_setConnectionMode(inst,NyLPC_TcHttpdConnection_CONNECTION_MODE_CONTINUE);