Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2912

Concurrent binding to TCP fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.5.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      When running a test that concurrently binds to a TCP port range, I found that there is a concurrency issue: The JDK socket implementation might have successfully bound but only failed on listening. 

      Tested with JDK 21. 

      PR with a failing test case: https://github.com/ahus1/JGroups/pull/new/is-JGRP-2912-concurrent-binding-to-tcp-fails    

      Possibly remedy: Always create new sockets if the binding fails, and do not reuse the socket to bind to another port in the range. 

              rhn-engineering-bban Bela Ban
              aschwart@redhat.com Alexander Schwartz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: