avoid TCP_NODELAY (in contrast to 18c621069bf8): might cause problems with some versions of Ubuntu 18.04;
authorwenzelm
Thu, 04 Oct 2018 16:40:03 +0200
changeset 69124 6ededdc829bb
parent 69123 26f107629b1f
child 69125 60b6c759134f
avoid TCP_NODELAY (in contrast to 18c621069bf8): might cause problems with some versions of Ubuntu 18.04;
src/Pure/General/socket_io.ML
src/Pure/System/system_channel.scala
--- a/src/Pure/General/socket_io.ML	Thu Oct 04 15:25:58 2018 +0100
+++ b/src/Pure/General/socket_io.ML	Thu Oct 04 16:40:03 2018 +0200
@@ -79,7 +79,6 @@
       | _ => err ());
     val socket: Socket.active INetSock.stream_sock = INetSock.TCP.socket ();
     val _ = Socket.connect (socket, INetSock.toAddr (NetHostDB.addr host, port));
-    val _ = INetSock.TCP.setNODELAY (socket, true);
   in make_streams socket end;
 
 end;
--- a/src/Pure/System/system_channel.scala	Thu Oct 04 15:25:58 2018 +0100
+++ b/src/Pure/System/system_channel.scala	Thu Oct 04 16:40:03 2018 +0200
@@ -26,7 +26,6 @@
   def rendezvous(): (OutputStream, InputStream) =
   {
     val socket = server.accept
-    socket.setTcpNoDelay(true)
     (socket.getOutputStream, socket.getInputStream)
   }