DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11285>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11285

SocketAppender fails to reconnect immediately

           Summary: SocketAppender fails to reconnect immediately
           Product: Log4j
           Version: 1.2
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Appender
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We are using a SimpleSocketServer that receives all logging requests and all 
components use the SocketAppender provided with log4j version 1.2.4.
Frequently, we need to update the server properties file to add new categories. 
Just after that we restart the socket server.
All components though are unable to connect to the new server immediately, 
making us loose several important logging events.
After a small check in the code, I realised we could set the ReconnectionDelay 
to a relatively small value (less than the default of 30 seconds) and be able 
to reduce the number of logging events we loose.
In any case though, even when the ReconnectionDelay is set to 1, we will loose 
the current event, which is not acceptable in our case. 
Is it possible to try ONCE to reconnect and if it fails, then sleep for 
ReconnectionDelay milliseconds and wait till the server is available?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to