Hello,

You may specify such an option in ~/.subversion/servers configuration file:

http-timeout Timeout for HTTP requests in seconds

SVNKit also has corresponding API, resp. ISVNHostOptionsProvider and
ISVNHostOptions. You might find the following code snippet useful —
https://gist.github.com/982876. ISVNHostOptions#getConnectTimeout()
method returns timeout in milliseconds.

Hope that helps.

Semen Vadishev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://sqljet.com/ - Java SQLite Library!



On 17 May 2011 11:41, Adryen31 wrote:
> Hello all,
>
> I have search in your Wiki and previous posting, but nothing ...
>
> If I try a:
>
> DefaultSVNAuthenticationManager authManager = new
> DefaultSVNAuthenticationManager(
>                 svnConfigDir, true, username, password);
>         SVNClientManager svnClientManager =
> SVNClientManager.newInstance(options);
>         if (svnUrlStr.startsWith("https")) {
>             svnClientManager.setAuthenticationManager(authManager);
>         }
>         SVNUpdateClient svnUpdateClient =
> svnClientManager.getUpdateClient();
>         try {
>             svnUpdateClient.doExport(svnUrl, checkoutTempDir,
> SVNRevision.UNDEFINED,
>                     SVNRevision.HEAD, "\n", true, SVNDepth.FILES);
>
> How I can set a Timeout connection please ? Because my svn connection
> response is very slow
>
> Thank for you help


Reply via email to