提交 5e40ac09 编写于 作者: K kohsuke

this is not by itself a fix to HUDSON-1762 but this should improve the performane of JNLP slaves

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9786 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0e1252f1
......@@ -4,6 +4,8 @@ import hudson.remoting.Channel;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.net.HttpURLConnection;
import java.net.Socket;
import java.net.URL;
......@@ -55,7 +57,9 @@ public class Engine extends Thread {
dos.writeUTF(secretKey);
dos.writeUTF(slaveName);
Channel channel = new Channel("channel", executor, s.getInputStream(), s.getOutputStream());
Channel channel = new Channel("channel", executor,
new BufferedInputStream(s.getInputStream()),
new BufferedOutputStream(s.getOutputStream()));
listener.status("Connected");
channel.join();
listener.status("Terminated");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册