* remove duplicate callback code
authorWilfried Göesgens <willi@citadel.org>
Sun, 31 May 2009 22:48:05 +0000 (22:48 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 31 May 2009 22:48:05 +0000 (22:48 +0000)
* shrink http read buffers on detach

webcit/context_loop.c
webcit/tcp_sockets.c

index d930fd271fc8ae48bf44cc98869de79372362fd7..667c159258e71f06ba3f183808de144223ce33e4 100644 (file)
@@ -774,7 +774,6 @@ void
 HttpDetachModule_CONTEXT
 (ParsedHttpHdrs *httpreq)
 {
-       FlushStrBuf(httpreq->ReadBuf);
        FlushStrBuf(httpreq->PlainArgs);
        FlushStrBuf(httpreq->this_page);
        FlushStrBuf(httpreq->PlainArgs);
@@ -787,7 +786,6 @@ HttpDestroyModule_CONTEXT
 (ParsedHttpHdrs *httpreq)
 {
        FreeStrBuf(&httpreq->this_page);
-       FreeStrBuf(&httpreq->ReadBuf);
        FreeStrBuf(&httpreq->PlainArgs);
        FreeStrBuf(&httpreq->this_page);
        FreeStrBuf(&httpreq->PlainArgs);
index 18d28514df2506e2b444e27e4d1ddb918314f6f2..aeafad4e563e34c1d09878fa2c976fb869028930 100644 (file)
@@ -725,6 +725,7 @@ HttpDetachModule_TCPSOCKETS
 {
 
        FlushStrBuf(httpreq->ReadBuf);
+       ReAdjustEmptyBuf(httpreq->ReadBuf, 4 * SIZ, SIZ);
 }
 
 void