Skip to content

Commit

Permalink
Merge pull request #17 from kutzi/JENKINS-19004-channel-executor-name
Browse files Browse the repository at this point in the history
[JENKINS-19004] set name for remoting threads
  • Loading branch information
kutzi committed Aug 18, 2013
2 parents 91f09c2 + ae3ed91 commit d43ea72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/remoting/Request.java
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
}
});
Expand Down

0 comments on commit d43ea72

Please sign in to comment.