Running SimpleSocketServer.java receiving logs from other nodes, configured via XML, using RollingFileAppender with "BufferedIO" value="true", "BufferSize" value="65536", upon socket close from the sending side the buffered logs are lost. Since SimpleSocketServer is a main program it is responsible for calling LogManager::shutdown() as stated in the log4j documentation. The lost logs problem is easily corrected by reconfiguring to do "BufferedIO" value="false", but that defeats the performance purpose of buffering on the server side. The spurious error on exit was: 2008-04-15 18:16:19,410 [Thread-0] INFO org.apache.log4j.net.SocketNode (org.apache.log4j.net.SocketNode.run(SocketNode.java:89)) - Caught java.io.EOFException closing conneciton. Note also the misspelled "conneciton" in SocketNode.java (in three places)
Can you create a test case demonstrating this behaviour, please?