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

(so) setTcpNoDelay fails with "Invalid argument" on Windows Vista

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Application client sometimes gets an exception on Windows Vista (JDK 7 b126, also reproducible with JDK 6 update releases and with -Djava.net.preferIPv4Stack=true):

      Jan 24, 2011 6:24:43 AM com.sun.grizzly.nio.transport.TCPNIOTransport configureChannel
      WARNING: Can not set TcpNoDelay to true
      java.net.SocketException: Invalid argument: no further information
              at sun.nio.ch.Net.setIntOption0(Native Method)
              at sun.nio.ch.Net.setSocketOption(Net.java:264)
              at sun.nio.ch.SocketChannelImpl.setOption(SocketChannelImpl.java:180)
              at sun.nio.ch.SocketAdaptor.setBooleanOption(SocketAdaptor.java:286)
              at sun.nio.ch.SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:321)
              at com.sun.grizzly.nio.transport.TCPNIOTransport.configureChannel(TCPNIOTransport.java:552)
              at com.sun.grizzly.nio.transport.TCPNIOConnectorHandler$ConnectorEventProcessor.process(TCPNIOConnectorH
      andler.java:245)
              at com.sun.grizzly.ProcessorRunnable.run(ProcessorRunnable.java:217)
              at com.sun.grizzly.utils.CurrentThreadExecutor.execute(CurrentThreadExecutor.java:52)
              at com.sun.grizzly.strategies.WorkerThreadStrategy.executeProcessor(WorkerThreadStrategy.java:101)
              at com.sun.grizzly.nio.transport.TCPNIOTransport.executeProcessor(TCPNIOTransport.java:709)
              at com.sun.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:679)
              at com.sun.grizzly.nio.SelectorRunner.fire(SelectorRunner.java:386)
              at com.sun.grizzly.nio.SelectorRunner.iterateKeyEvents(SelectorRunner.java:361)
              at com.sun.grizzly.nio.SelectorRunner.iterateKeys(SelectorRunner.java:288)
              at com.sun.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:260)
              at com.sun.grizzly.nio.SelectorRunner.run(SelectorRunner.java:191)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:732)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                nhaustov Nicolay Haustov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: