Hi, I have the following question regarding the class SocketServer.java (used to allow TCP connection):
In the function main, when a connection is accepted a thread is created at the following line: new Thread(new SocketNode(socket, h)).start(); As the reference to this thread is not kept any where in the program then this thread will be in the list of items to be cleaned by the garbage collector. Thus, when the socket node and the thread are both cleaned by GC then the TCP appender will have to reconnect again. My question is: Are the log4j TCP server and appender using one socket for several logging events (until the TCP appender is closed) or is the TCP server creating a socket node for every one or two logging events (depending on socket status (deleted or not)).? Thanks El-Yamine Kettal This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>