Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-353

When a client disconnects the SocketHubAppender crashes on the next log message

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • None
    • Appender
    • None
    • Windows Vista x64 compiling with Visual Studio 2008

    Description

      When a connected client disconnects from a SocketHubAppender log4cxx throughs an exception. From looking at the code, what is happening is the disconnected client is being erased from a output stream vector, which invalidates a .end() iterator which is being used in a while loop. The simple fix would be to reassign the end iterator after erasing the disconnected client.

      I don't have developer access so I can't check my patch in.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            carnold@apache.org Curt Arnold
            simonreye Simon Reye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment