Skip to content
Permalink
Browse files

[JENKINS-48766] - Expose Remoting Minimum version in TcpSlaveAgentLis…

…tener
  • Loading branch information...
oleg-nenashev committed Jan 22, 2018
1 parent 0ca8572 commit 1b2f0e7e64dc32bc6aac8d31b35013f52a668613
Showing with 2 additions and 0 deletions.
  1. +2 −0 core/src/main/java/hudson/TcpSlaveAgentListener.java
@@ -34,6 +34,7 @@
import hudson.model.AperiodicWork;
import jenkins.model.Jenkins;
import jenkins.model.identity.InstanceIdentityProvider;
import jenkins.slaves.RemotingVersionInfo;
import jenkins.util.SystemProperties;
import hudson.slaves.OfflineCause;
import java.io.DataOutputStream;
@@ -300,6 +301,7 @@ private void respondHello(String header, Socket s) throws IOException {
o.write("Jenkins-Session: " + Jenkins.SESSION_HASH + "\r\n");
o.write("Client: " + s.getInetAddress().getHostAddress() + "\r\n");
o.write("Server: " + s.getLocalAddress().getHostAddress() + "\r\n");
o.write("Remoting-Minimum-Version: " + RemotingVersionInfo.getMinimumSupportedVersion() + "\r\n");
o.flush();
s.shutdownOutput();
} else {

0 comments on commit 1b2f0e7

Please sign in to comment.
You can’t perform that action at this time.