ActiveMQ
  1. ActiveMQ
  2. AMQ-1967

TcpTransportServer.bind() should use serverSocket.setReuseAddress(Boolean.TRUE)

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.2.0
    • Component/s: Transport
    • Labels:
      None

      Description

      for tests that restart brokers or for apps that require fast restarts, using reuseAddress for server sockets makes sense.
      The default should be true, with the option to control it through transport Options.

      This will help the robustness of DuplexNetworkMBeanTest which does a bunch of broker restarts to check for leaked MBeans

        Activity

        Hide
        Gary Tully added a comment -

        transport.reuseAddress=true is now respected by TcpTransportServer

        Show
        Gary Tully added a comment - transport.reuseAddress=true is now respected by TcpTransportServer

          People

          • Assignee:
            Gary Tully
            Reporter:
            Gary Tully
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development