JDK-4293249 : Socket.setTcpNoDelay(true) throws an exception under WinNT Service Pack 6
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-11-21
  • Updated: 1999-11-22
  • Resolved: 1999-11-22
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 11/21/99


D:\Users\Jolif\Essais>java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)


Under WinNT 4.0 with Service Pack 6 (with JDK 1.1.8, 1.2.1, 1.2.2 & 1.3 beta),
the Socket.setTcpNoDelay(true) method throws an exception.
Before installing SP 6, it was working fine.

Here is the sample :
import java.net.*;

public class PbSocket
{
  // CJO 11/99
  public static void main(String[] arg)
  {
    ServerSocket socket = null;
    Socket ns = null;
    try {
      socket = new ServerSocket(8002, 128);
      ns = socket.accept();
    } catch (java.io.IOException e) {
      e.printStackTrace();
    }
    try {
      ns.setTcpNoDelay(true);
    } catch (SocketException e) {
      e.printStackTrace();
    }
  }
}
(Review ID: 97631) 
======================================================================