[ 
https://issues.apache.org/jira/browse/LOG4J2-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501501#comment-13501501
 ] 

Ralph Goers commented on LOG4J2-122:
------------------------------------

Please see 
http://docs.oracle.com/javase/1.5.0/docs/guide/net/articles/connection_release.html.
  I 've taken your java class and added it as a unit test. However, I've found 
that the only way to solve the problem is in code that needs to be added to the 
socket server.  You simply need to add socket.setSoLinger(true, 0) to the 
socket.  I've gone ahead and also added it to the socket in the 
TCPSocketManager but that made no difference.
                
> Socket/Syslog appenders silently lose first message after socket disconnect
> ---------------------------------------------------------------------------
>
>                 Key: LOG4J2-122
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-122
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.0-beta2
>         Environment: Java 1.6.0_24
>            Reporter: Scott Severtson
>         Attachments: log4j2.xml, TestSilentMessageLossBehavior.java
>
>
> The Socket and Syslog appenders silently lose the first log message sent 
> after the destination server socket disconnects. This occurs regardless if 
> suppressExceptions is set to true or false.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to