0001-Improve-tcp-connection-establishment_d138e5f.patch

S. Barut, 10/08/2018 01:43 PM

Download (1.28 KB)

View differences:

rsb-cil/Rsb/Transport/Socket/BusClientConnection.cs
32 32
        {
33 33
            LOGGER.Debug("Activating");
34 34

  
35

  
36
            this.client = new TcpClient(host, port);
35
            // fix, see
36
            // https://stackoverflow.com/questions/18390715/why-is-the-tcpclient-slower-to-connect-with-parameters-in-the-constructor
37
            this.client = new TcpClient();
38
            this.client.Connect(host, port);
37 39
            this.client.NoDelay = true;
38 40
            this.stream = client.GetStream();
39 41

  
40
-