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

(so) SocketChannel writer blocked on large buffer is not preempted by close method (vista)

XMLWordPrintable

    • b100
    • generic, x86, itanium
    • linux, windows, windows_xp, windows_vista
    • Verified

      The unit test test/java/nio/channels/AsyncCloseAndInterrupt.java fails on Windows Vista beta 2.

      The issue appears to be a bug in Windows Vista whereby closesocket does not preempt a thread that is blocked on WSASend with a buffer of length >= 128k. Preemption occurs as expected with buffers < 128k. This impacts NIO as we expect that the write method will throw an AsynchronousCloseException when the thread is interrupted or the SocketChannel is closed. Classic networking is not impacted by this bug as it limits the write buffer to 64k.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: