Loading src/httpd.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -927,8 +927,6 @@ REQUESTHANDLING: } case POSTREQUEST: { size_t clen = cureq.getContentLength(); std::cerr << "[H1-POST] clen=" << clen << " recv=" << cureq.RecvData.size() << std::endl; if(clen == 0){ RequestEvent(cureq,tid,args); cureq._RequestType=PARSEREQUEST; Loading Loading @@ -1003,6 +1001,13 @@ void libhttppp::HttpEvent::ResponseEvent(netplus::con &curcon,const int tid,ULON if(cureq.SendData.empty()){ cureq.SendData.pos=0; cureq.clear(); // Keep-alive: if the next request is already buffered in // RecvData, process it now. Without this, the data would // sit unprocessed until the next EPOLLIN event — which may // never fire because the client already sent everything. if (!cureq.RecvData.empty()) { RequestEvent(curcon, tid, args); } } }catch(HTTPException &e){ netplus::NetException ne; Loading Loading
src/httpd.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -927,8 +927,6 @@ REQUESTHANDLING: } case POSTREQUEST: { size_t clen = cureq.getContentLength(); std::cerr << "[H1-POST] clen=" << clen << " recv=" << cureq.RecvData.size() << std::endl; if(clen == 0){ RequestEvent(cureq,tid,args); cureq._RequestType=PARSEREQUEST; Loading Loading @@ -1003,6 +1001,13 @@ void libhttppp::HttpEvent::ResponseEvent(netplus::con &curcon,const int tid,ULON if(cureq.SendData.empty()){ cureq.SendData.pos=0; cureq.clear(); // Keep-alive: if the next request is already buffered in // RecvData, process it now. Without this, the data would // sit unprocessed until the next EPOLLIN event — which may // never fire because the client already sent everything. if (!cureq.RecvData.empty()) { RequestEvent(curcon, tid, args); } } }catch(HTTPException &e){ netplus::NetException ne; Loading