Skip to content

Commit

Permalink
[JENKINS-48766] - Expose Remoting Minimum version in TcpSlaveAgentLis…
Browse files Browse the repository at this point in the history
…tener
  • Loading branch information
oleg-nenashev committed Jan 22, 2018
1 parent 0ca8572 commit 1b2f0e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/hudson/TcpSlaveAgentListener.java
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1b2f0e7

Please sign in to comment.