当我执行this code(显然与我的回购协议,用户名&密码)主()内的一切都很好:如何避免线程中的超时异常?
....
String url = "http://svn.svnkit.com/repos/svnkit/trunk/doc";
String name = "anonymous";
String password = "anonymous";
SVNRepository repository = null;
try {
repository = SVNRepositoryFactory.create(SVNURL.parseURIDecoded(url));
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(name , password);
repository.setAuthenticationManager(authManager);
SVNNodeKind nodeKind = repository.checkPath("" , -1);
....
但是,当我执行一个线程我碰到下面的错误这里面代码:
svn: E175002: timed out waiting for server
我试图设置我的线程与最大优先级,但这不起作用。 我能做些什么来解决这个问题?
一般来说,线程优先级几乎不做任何事情 - 尤其是当一个线程正在等资源(如SVN服务器)等待时。 – Gray
@格雷:谢谢! –