Commit f55c3fc8 authored by jan.koester's avatar jan.koester
Browse files

test

parent a2455749
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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;