Log4j 2
  1. Log4j 2
  2. LOG4J2-119

Socket/Syslog reconnectionDelay results in constant reconnects

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta2
    • Fix Version/s: 2.0-beta4
    • Component/s: Appenders
    • Labels:
    • Environment:

      Java 1.6.0_24

      Description

      When a Socket or Syslog appender is configured with a reconnectionDelay greater than zero, any interruption in the receiving server socket results in repeated reconnect attempts, even after the connection is restored.

      1. TestReconnectBehavior.java
        3 kB
        Scott Severtson
      2. log4j2.xml
        0.4 kB
        Scott Severtson

        Activity

        Hide
        Scott Severtson added a comment -

        App to demonstrate the repeated reconnect attempts.

        Show
        Scott Severtson added a comment - App to demonstrate the repeated reconnect attempts.
        Hide
        Scott Severtson added a comment -

        Sample log4j2.xml configuration file to demonstrate the issue (used in conjunction with supplied app)

        Show
        Scott Severtson added a comment - Sample log4j2.xml configuration file to demonstrate the issue (used in conjunction with supplied app)
        Hide
        Scott Severtson added a comment -

        I've attached a demonstration app which shows the problem.

        Show
        Scott Severtson added a comment - I've attached a demonstration app which shows the problem.
        Hide
        Ralph Goers added a comment -

        Fixed in revision 1411311. Please verify and close.

        Show
        Ralph Goers added a comment - Fixed in revision 1411311. Please verify and close.
        Hide
        Scott Severtson added a comment -

        Revision #1411311 appears to work perfectly. Thanks!

        Show
        Scott Severtson added a comment - Revision #1411311 appears to work perfectly. Thanks!

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Scott Severtson
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development