提交 594c5ef1 编写于 作者: K kohsuke

improving the diagnosability by setting the thread name.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34839 71c3de6d-444a-0410-be80-ed276b4c234a
上级 5f51597a
......@@ -431,7 +431,11 @@ public class Channel implements VirtualChannel, IChannel {
*/
private ExecutorService createPipeWriter() {
if (remoteCapability.supportsPipeThrottling())
return Executors.newSingleThreadExecutor();
return Executors.newSingleThreadExecutor(new ThreadFactory() {
public Thread newThread(Runnable r) {
return new Thread(r,"Pipe writer thread: "+name);
}
});
return new SynchronousExecutorService();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册