httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubert lubaczewski <hubert.lubaczew...@eo.pl>
Subject Re: [users@httpd] mod_rewrite with maps gives random pages
Date Thu, 23 Dec 2004 21:02:21 GMT
On Thu, Dec 23, 2004 at 09:25:07PM +0100, André Malo wrote:
> * hubert lubaczewski wrote:
> > http://www.depesz.com/wcMapper.c
> #define URL_LENGTH_LIMIT 20480
> This looks like you've taken 2048 in the first place. Just to make sure: If 
> you're running 2048 in your production version, that's your problem. The 
> buffer should be at least LimitRequestLine (8K as distributed). Otherwise 
> there's stuff left over in the buffer and handled in the next request.

LimitRequestLine is 8k, but i do assing 20k ! not 2k!
do you think i should memset() with '\0''s the whole cGiven ? but what
it could be that it *usually* works? some kind of char mangling data
in memory?

> In other words, every line you get that doesn't end with a \n will move the 
> map out of sync (you could check that in your program).

how can you get this thing with fgets() ?!

depesz

-- 
hubert lubaczewski
Network Operations Center
eo Networks Sp. z o.o.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message