Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-245

Unicast discovery should close socket in case of connection exception.

    XMLWordPrintableJSON

Details

    • 6284047

    Description

      Bugtraq ID 6284047

      The MultiIPDiscovery class which is used by ConstrainableLookupLocator, LookupDiscovery and LookupLocatorDiscovery does not close the socket it created on encountering an exception during connect. Ordinarily this should not result in the socket file descriptor being 'leaked' (at least until finalization). However, this should still be cleaned up.

      This behavior would be consistent to the endpoint implementations too.

      We should also close those socket in case there is an exception while setting the SO_TIMEOUT (setSoTimeout call).

      Attachments

        1. RIVER-245.patch
          3 kB
          Thomas Vinod Johnson

        Activity

          People

            vinodjohnson Thomas Vinod Johnson
            jhurley Jim Hurley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: