<div class="gmail_quote">Hello,<br><br>NB : I propose this patch in alpha version. It has been tested only on a Linux Mandriva. (in the alpha version, it's recommended to use it on logs you might loose).<br><br>Why to use this patch ?<br>
One reason I have to restart periodically stunnel is to do log rotation. This patch allows log rotation while running stunnel by implementing it directly inside. Therefore, the established connections are not closed by log rotation.<br>
<br>Patch to version : 4.26 (should work on earlier versions).<br><br>Type : new feature<br><br>Description : Log rotation inside stunnel<br>
<br>How to use this patch ?<br>3 new options are added in config file (see manual)<br>maxLogSize : maximum size of log file (output option in config file). If logs have to be added, a log rotation is initiated.<br>maxLogFiles : how many log files you want to keep. Default 7.<br>
useLogCompression : specify if rotated log files kept must be compressed or not. (requires zlib to be set).<br>
<br>Just recompile stunnel after applying patch in stunnel directory: <br>patch -p1 < /path/to/stunnel-logrot-0.10a.patch<br><br>Test results are welcomed.<br><br>Regards<br></div>-- <br>Christophe Nanteuil<br>