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

(dc) Improve connection reset/port unreachable handling [win]

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 1.4.2_22, 5.0u21, 6u14
    • core-libs
    • b100
    • x86
    • windows_vista, windows_7
    • Verified

        There is diffrent behavior in nio between windows and Solaris/linux.

        In windows, java.nio.channels.Selecor#select does not block under the follwoing condition.

        - Valid IP address
        - Send a packet to the destination of which the port is closed
        (Please see the attached DatagramTest.java)

        In platforms other than Windows, java.nio.channels.Selecor#select seems to block.

        CONFIGURATION:
        JDK : 1.4.2_XX/5ux/6ux/7b85
        OS : WindowsXP/Vista/7

        REPRODUCE:
        1. Compile the attached program, "DatagramTest.java"
        2. Invoke "java DatagramTest"

        FREQUENCY :
        this problem always occurs

        EXPECTED :

        Only "step1" message appears.


        ACTUAL :

        step1
        valid:true
        readable:true
        writable:false

              alanb Alan Bateman
              tbaba Tadayuki Baba (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: