Skip to content
Permalink
Browse files
Merge pull request #17 from kutzi/JENKINS-19004-channel-executor-name
[JENKINS-19004] set name for remoting threads
  • Loading branch information
kutzi committed Aug 18, 2013
2 parents 91f09c2 + ae3ed91 commit d43ea72d64af285de2cfaeadae4b5420fbe36b71
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/hudson/remoting/Request.java
@@ -315,6 +315,8 @@ private int calcLastIoId() {
}

public void run() {
String oldThreadName = Thread.currentThread().getName();
Thread.currentThread().setName(oldThreadName+" for "+channel.getName());
try {
Command rsp;
CURRENT.set(Request.this);
@@ -345,6 +347,7 @@ public void run() {
logger.log(Level.SEVERE, "Failed to send back a reply",e);
} finally {
channel.executingCalls.remove(id);
Thread.currentThread().setName(oldThreadName);
}
}
});

0 comments on commit d43ea72

Please sign in to comment.