httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28637] - mod_rewrite out of sync
Date Tue, 27 Apr 2004 21:23:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28637>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28637

mod_rewrite out of sync





------- Additional Comments From camposr@uol.com.br  2004-04-27 21:23 -------
There's no error in the errorlog, the problem begins after a random number of 
requests (usually many thousands), and stops after a restart in the Apache 
server.

The same external program works perfectly with Apache 1.3.29, basically it 
reads a ascii file and creates a linked-list in memory, with a key-value 
structure, the argument passed on stdin is matched against some patterns and 
returns a complete URL.

This is the ruleset that uses the rewritemap:

   RewriteCond  ${redirmap:%{REQUEST_URI}}      ^(https?.*)
   RewriteRule  .       %1      [R,L,NE]



I read stdin this way:

#define BUFSIZE 512
...
char line[BUFSIZE];
...
setvbuf (stdout, NULL, _IOLBF, 0);
...
while (fgets (line, sizeof (line), stdin))
...
/* write to stdout */
printf ("%s\n", (char *) cp);
...

I hope this helps.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message