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

Reconnection not working for sockets

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.11.0
    • Component/s: Appender
    • Labels:
      None
    • Environment:
      All

      Description

      ReconnectionDelay is not working for XMLSocketAppender. This method is
      backwards:

      void SocketAppenderSkeleton::fireConnector()
      {
      synchronized sync(mutex);
      if (thread.isActive())

      { thread.run(monitor, this); }

      }

      The if condition is backwards. The code currently says it the thread is already running then start it. You need a ! on the condition.

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              dalewking Dale King
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: