Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4810155

Need a way to timeout or test for connection with ListeningConnector.accept()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.0
    • core-svc
    • tiger
    • x86
    • windows_nt



      Name: rmT116609 Date: 01/29/2003


      DESCRIPTION OF THE PROBLEM :
      com.sun.jdi.connect.ListeningConnector.attach() waits indefinitely for a connection. There doesn't seem to be any way to set a timeout or interrupt the wait. This makes it fairly dangerous to use in an integrated debugger. There
      should be a way to set a timeout, instantly test for a connection, or interrupt from another thread, if such things are possible.

      Currently we're using an AttachingConnector, but some users want to debug programs with I/O in a DOS shell (so it would not be possible to read the connection address).

      (Review ID: 147273)
      ======================================================================

            alanb Alan Bateman
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: