提交 9e6c227e 编写于 作者: A ashlux

[FIXED HUDSON-3273] Increase timeout to 30 seconds since 10 seconds isn't...

[FIXED HUDSON-3273] Increase timeout to 30 seconds since 10 seconds isn't enough for machines with poor resources.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30733 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d3ce6ead
......@@ -160,7 +160,7 @@ final class MavenProcessFactory implements ProcessCache.Factory {
this.serverSocket = new ServerSocket();
serverSocket.bind(null); // new InetSocketAddress(InetAddress.getLocalHost(),0));
// prevent a hang at the accept method in case the forked process didn't start successfully
serverSocket.setSoTimeout(10*1000);
serverSocket.setSoTimeout(30*1000);
}
public Connection accept() throws IOException {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册