From: Wilfried Göesgens Date: Sun, 31 May 2009 22:48:05 +0000 (+0000) Subject: * remove duplicate callback code X-Git-Tag: v7.86~1112 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4f56d8e5d359f4483087873c7f63312fb4362997 * remove duplicate callback code * shrink http read buffers on detach --- diff --git a/webcit/context_loop.c b/webcit/context_loop.c index d930fd271..667c15925 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -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); diff --git a/webcit/tcp_sockets.c b/webcit/tcp_sockets.c index 18d28514d..aeafad4e5 100644 --- a/webcit/tcp_sockets.c +++ b/webcit/tcp_sockets.c @@ -725,6 +725,7 @@ HttpDetachModule_TCPSOCKETS { FlushStrBuf(httpreq->ReadBuf); + ReAdjustEmptyBuf(httpreq->ReadBuf, 4 * SIZ, SIZ); } void