httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Plüm, Rüdiger, VF-Group" <ruediger.pl...@vodafone.com>
Subject Re: rotatelogs - Adding timeout for reading from stdin
Date Wed, 10 Jun 2009 12:51:06 GMT
Any particular reason why not using apr_wait_for_io_or_timeout
at least on unix?

Regards

Rüdiger 

> -----Ursprüngliche Nachricht-----
> Von: Mladen Turk 
> Gesendet: Mittwoch, 10. Juni 2009 14:24
> An: dev@httpd.apache.org
> Betreff: Re: rotatelogs - Adding timeout for reading from stdin
> 
> William A. Rowe, Jr. wrote:
> > Mladen Turk wrote:
> > 
> > I'd leave rotatelogs alone, please.  Its design is not flawed.  But
> > I think Jim was working on something which would release the file
> > just as soon as its time is up, and that is useful across all of
> > the architectures, not windows specific.
> > 
> 
> Attached is the patch that uses 1 second timeout when reading
> from stdin (hard-coded because we have 1 second rotation resolution).
> 
> Unfortunately I had to make WIN32 specific peace of code,
> cause we don't have APR_FILES_AS_SOCKETS on that platform.
> 
> Code was testes both on windows and linux and it works like
> a charm (rotation is done at exact time regardless of log events).
> 
> 
> Regards
> -- 
> ^(TM)
> 

Mime
View raw message