Duplicate :
|
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) ======================================================================