proxy it's slow :(

This commit is contained in:
rusefi 2020-07-23 23:42:50 -04:00
parent d8f19849ac
commit af638f1aa0
1 changed files with 6 additions and 2 deletions

View File

@ -60,8 +60,12 @@ public class rusEFISSLContext {
}
public static Socket getSSLSocket(String host, int port) throws IOException {
if (isJenkins)
return new Socket(host, port);
if (isJenkins) {
Socket socket = new Socket(host, port);
// responsiveness matters (getting a byte sent to be received as promptly as possible)
socket.setTcpNoDelay(true);
return socket;
}
return getSSLSocketFactory(null /*key*/, TLS).createSocket(host, port);
}