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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to