提交 c403f742 编写于 作者: K kohsuke

fixed a bug in the socket partial close problem

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22524 71c3de6d-444a-0410-be80-ed276b4c234a
上级 6dab8702
......@@ -27,6 +27,8 @@ import hudson.remoting.Channel;
import hudson.remoting.RemoteInputStream;
import hudson.remoting.RemoteOutputStream;
import hudson.remoting.PingThread;
import hudson.remoting.SocketInputStream;
import hudson.remoting.SocketOutputStream;
import java.net.URL;
import java.net.URLConnection;
......@@ -76,9 +78,9 @@ public class CLI {
DataOutputStream dos = new DataOutputStream(s.getOutputStream());
dos.writeUTF("Protocol:CLI-connect");
channel = new Channel("channel", pool,
new BufferedInputStream(s.getInputStream()),
new BufferedOutputStream(s.getOutputStream()));
channel = new Channel("CLI connection to "+hudson, pool,
new BufferedInputStream(new SocketInputStream(s)),
new BufferedOutputStream(new SocketOutputStream(s)));
} else {
// connect via HTTP
LOGGER.fine("Trying to connect to "+url+" via HTTP");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册