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

closing a ServerSocket that's in accept() fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.2.0
    • core-libs
    • None
    • sparc
    • solaris_2.5.1

      With Solaris green threads, if one thread is blocked in ServerSocket.accept and another thread closes that socket, there appears to be no effect on the accept call; no exception is thrown. With Solaris native threads, the result is that the process no longer responds to shell job control (^C, ^Z, etc), it has to be killed with a kill -9 from another shell. See the attached test program.

            alanb Alan Bateman
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: