[stunnel-users] debug level 7

Luis Rodrigo Gallardo Cruz rodrigo at nul-unu.com
Thu Jan 24 00:08:26 CET 2008


On Wed, Jan 23, 2008 at 01:45:17PM -0600, Damian Wiest wrote:
> Hi,
> 
> I'm new to stunnel and have run into some unexpected behavior.  I'm 
> inclined to think it's a bug, but perhaps I'm misunderstanding some 
> things.
> 
> I'm running FreeBSD 6.2 with stunnel 4.21 (installed via ports 
> collection).  I'm able to configure things properly when using stunnel 
> in daemon mode, but am unable to run stunnel from inetd when I set the 
> debug level to 7.
> 
> If I connect to port 901, some debug messages are written to the socket,
> [ ... ] 
> ...and some are written to the file I specified,
> [ ... ]
> If I run stunnel in daemon mode with the debug level set to 7, then 
> the messages are printed to stderr.  Shouldn't they go to either syslog, 
> or to the file specified with the "output" option?
> 
> I dug through the source code and discovered that file_putline() 
> is being called from parse_config() before open_log() has been called.
> This results in file_putline() writing to stderr instead of the specified
> output file.

It's know behaviour that will get fixed for 4.22. Dig through the list
archives for the past couple weeks for a URL to download a beta, if you
care to test it. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20080123/367ed0ff/attachment.sig>


More information about the stunnel-users mailing list