You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/02/17 19:16:10 UTC

DO NOT REPLY [Bug 33624] New: - SocketHubAppender doesn't clean up socket

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=33624

           Summary: SocketHubAppender doesn't clean up socket
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: todd.bradley@polycom.com


I have only tested this on Windows XP, using Java 5 and log4j 1.2.9 under Eclipse.

I have a test class that opens a SocketHubAppender and spews some fake log
messages to it (I'll call this "spewer").  I have another class that opens a
client socket connection to the SocketHubAppender and reads log messages from it.

The problem is that when the SocketHubAppender goes away, the socket doesn't get
closed in a consistent way.

When I run the spewer class in a separate process from the client, I get an
EOFException when the spewer finishes, which is what I expect.

When I run the spewer class in a thread of the client, I never get an exception
when the spewer finishes.  Therefore, my client hangs forever trying to read on
that socket.

I posted this problem to the log4j-user list on Wed 2/9/2005, but nobody seems
to have any suggestions.  So, I'm guessing this is a bug.

I marked this as Severity: blocker because it's blocking my ability to test my
client software.  My JUnit tests rely on the client shutting down correctly and
consistently, and it can't do so since the SocketHubAppender doesn't (appear to)
shut down correctly.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org