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

VISTA: Socket setTcpNoDelay & setKeepAlive working incorrectly

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      generic, x86
    • OS:
      windows_vista

      Backports

        Description

        Socket.setTcpNoDelay & Socket.setKeepAlive are no working as expected on Windows Vista beta 2 (build 5308).

        You can test this easily by calling Socket.setTcpNoDelay() followed by Socket.getTcpNoDelay(). The value returned from the get will not match that passed to the set, e.g
           ..\bin\java TestTcpNoDelay
        Get TCP_NODELAY = true
        Set TCP_NODELAY to false
        Get TCP_NODELAY = true

        This is a native vista issue and can be reproduced by a simple native testcase (attached, TestSOKEEPALIVE.c, TestTCPNODELAY). This needs to be fixed in the vista platform.
         Native Tests show:
           T:\6358574>TestTCPNODELAY
        Get TCP_NODELAY = 4198656
        Set TCP_NODELAY = 1
        Get TCP_NODELAY = 4198657
          
           T:\6358574>TestSOKEEPALIVE
                Get SO_KEEPALIVE = 5120
                Set SO_KEEPALIVE = 1
                Get SO_KEEPALIVE = 5121

        This is causing the following jck failures (7):
          api/java_net/Socket/descriptions.html#setTcpNoDelay
          api/java_net/Socket/descriptions.html#setKeepAlive
          api/javax_net/SocketFactory/index.html#SocketFactory001[SocketFactory001]
          api/javax_net/SocketFactory/index.html#SocketFactory002[SocketFactory002]
          api/javax_net/SocketFactory/index.html#SocketFactory003[SocketFactory003]
          api/javax_net/SocketFactory/index.html#SocketFactory004[SocketFactory004]
          api/javax_net/SocketFactory/index.html#SocketFactory005[SocketFactory005]

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                chegar Chris Hegarty
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: