JDK-4810155 : Need a way to timeout or test for connection with ListeningConnector.accept()
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2003-01-29
  • Updated: 2003-07-18
  • Resolved: 2003-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description

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) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b12
14-06-2004

EVALUATION It would be useful for an AttachingConnector's attach method to support a timeout argument. Additional a ListeningConnector's accept method could take a timeout argument. This will be examined in conjunction with 4287596. ###@###.### 2003-01-30 Complete timeout has been implemented for tiger. ###@###.### 2003-07-09
30-01-2003