* GSWAdaptors/Apache/mod_gsweb.c (GSWeb_Handler): Avoid endless

loop when users abort transmission with temporary hack.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2005-12-19 11:05:35 +00:00
parent f642b1e51a
commit 4573d13b24
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2005-12-19 David Ayers <d.ayers@inode.at>
* GSWAdaptors/Apache/mod_gsweb.c (GSWeb_Handler): Avoid endless
loop when users abort transmission with temporary hack.
2005-12-17 David Ayers <d.ayers@inode.at>
* GSWeb.framework/GSWApplication+Defaults.m

View file

@ -725,12 +725,12 @@ GSWeb_Handler(request_rec *p_pRequestRec)
&& pRequest->uContentLength>0
&& ap_should_client_block(p_pRequestRec))
{
long iReadLength=1;
long iRemainingLength = pRequest->uContentLength;
long iReadLength=0;
apr_size_t iRemainingLength = pRequest->uContentLength;
char *pszBuffer = malloc(pRequest->uContentLength);
char *pszData = pszBuffer;
while (iRemainingLength>0 && iReadLength>0)
while (iRemainingLength>0)
{
ap_soft_timeout("reading GSWeb request",
p_pRequestRec);
@ -745,7 +745,7 @@ GSWeb_Handler(request_rec *p_pRequestRec)
}
else
{
/* FIXME: I think we should so some better
/* FIXME: I think we should do some better
error handling but we need this so that
we don't endup backtracking the entire
content upon error which will make the