JDK-2132810 : connect in java/net/PlainSocketImpl.c should handle EALREADY
  • Type: Backport
  • Backport of: JDK-6343810
  • Component: core-libs
  • Sub-Component: java.net
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2005-12-20
  • Updated: 2010-12-06
  • Resolved: 2006-02-04
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 JDK 6
1.4.2_12Fixed 6 b71Fixed
Comments
EVALUATION It seems the HPI needs to be changed as suggested so that connect() can be called repeatedly as before whenever EINTR is returned, but we check for: EISCONN --> connection was established EALREADY --> connection attempt is underway (converted to EINPROGRESS) Then in PlainSocketImpl socketConnect() we check for EINPROGRESS from blocking calls, and use select() to wait for the real error. I have tested this on mustang, and it seems to work.
20-12-2005