Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38473

Changing the JNLP agent port via Groovy can cause long timeout

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Jenkins 2.7.4

      "Thread-12" id=102 (0x66) state=RUNNABLE cpu=0% (running in native)
          at java.net.SocketInputStream.socketRead0(Native Method)
          at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
          at java.net.SocketInputStream.read(SocketInputStream.java:170)
          at java.net.SocketInputStream.read(SocketInputStream.java:141)
          at java.net.SocketInputStream.read(SocketInputStream.java:127)
          at hudson.TcpSlaveAgentListener$PingAgentProtocol.connect(TcpSlaveAgentListener.java:263)
          at hudson.TcpSlaveAgentListener.shutdown(TcpSlaveAgentListener.java:139)
          at jenkins.model.Jenkins.launchTcpSlaveAgentListener(Jenkins.java:1054)
          at jenkins.model.Jenkins.setSlaveAgentPort(Jenkins.java:1047)
          at jenkins.model.Jenkins$setSlaveAgentPort$0.call(Unknown Source)
          at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
          at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
          at tcp-slave-agent-port$_run_closure1.doCall(tcp-slave-agent-port.groovy:10)
          at tcp-slave-agent-port$_run_closure1.doCall(tcp-slave-agent-port.groovy)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
          at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
          at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
          at groovy.lang.Closure.call(Closure.java:414)
          at groovy.lang.Closure.call(Closure.java:408)
          at groovy.lang.Closure.run(Closure.java:495)
          at java.lang.Thread.run(Thread.java:745)
      

          [JENKINS-38473] Changing the JNLP agent port via Groovy can cause long timeout

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/TcpSlaveAgentListener.java
          http://jenkins-ci.org/commit/jenkins/1689f6b7a21fc910a186e092227780c614ed7443
          Log:
          [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. (#2564)

          • [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/TcpSlaveAgentListener.java http://jenkins-ci.org/commit/jenkins/1689f6b7a21fc910a186e092227780c614ed7443 Log: [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. (#2564) [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. JENKINS-38473 Remove leftover typing in wrong window

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          core/src/main/java/hudson/TcpSlaveAgentListener.java
          http://jenkins-ci.org/commit/jenkins/d32b32f9115d31fe0f42d1f75eb25ea8af6909ff
          Log:
          [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. (#2564)

          • [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread.

          (cherry picked from commit 1689f6b7a21fc910a186e092227780c614ed7443)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: core/src/main/java/hudson/TcpSlaveAgentListener.java http://jenkins-ci.org/commit/jenkins/d32b32f9115d31fe0f42d1f75eb25ea8af6909ff Log: [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. (#2564) [FIXED JENKINS-38473] Set a short timeout on the socket when using it to wake the acceptor thread. JENKINS-38473 Remove leftover typing in wrong window (cherry picked from commit 1689f6b7a21fc910a186e092227780c614ed7443)

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: