Project Binding Details - "List..."-command hangs forever if server unreachable

If reporting a bug with the Agent Git or Agent SVN plug-ins please post the details here. Please do not post questions here.
Post Reply
PhilS
Posts: 5
Joined: Mon Jul 20, 2015 4:19 pm

Project Binding Details - "List..."-command hangs forever if server unreachable

Post by PhilS » Mon Jul 20, 2015 4:36 pm

Agent SVN Version 2.47

If I click the "List..."-button in the "Project Binding Details"-Dialog and the SVN-server specified in the "AUX Path" is not available AgentSVN will hang forever (> 5minutes). Only way out is, to use Windows Task Manager to terminate the application.

jussij
Site Admin
Posts: 2447
Joined: Fri Aug 13, 2004 5:10 pm

Re: Project Binding Details - "List..."-command hangs forever if server unreachable

Post by jussij » Wed Jul 22, 2015 7:53 am

It sounds like the Subversion repository location in the configuration dialog has not been correctly defined and is timing out.

The List button found on this binding dialog will list the files/folders of the currently configure Subversion repository.

Image

The AUX Path button should display the configuration dialog shown below.

The currently configured repository is defined in the Configuration dialog show below. The Subversion repository is location is defined at the bottom of that dialog:

Image

Cheers Jussi

PhilS
Posts: 5
Joined: Mon Jul 20, 2015 4:19 pm

Re: Project Binding Details - "List..."-command hangs forever if server unreachable

Post by PhilS » Tue Jul 28, 2015 7:13 am

The AUXPath is entered correctly but the remote SVN server was unreachable due to network issues.

The problem here is that AgentSVN is not timing out. The connection attempt should be aborted after some 30 seconds and there should be a Message saying "Cannot reach repository sever". - But that does not happen. AgentSVN just hangs forever. And with it the whole IDE. So the only remedy to that is, terminating the IDE with Windows Task Manager. This might cause the loss of unsaved work.

BTW: The "Notify me when a reply is posted" on this forums seems to be not working.

jussij
Site Admin
Posts: 2447
Joined: Fri Aug 13, 2004 5:10 pm

Re: Project Binding Details - "List..."-command hangs forever if server unreachable

Post by jussij » Wed Jul 29, 2015 5:10 am

The problem here is that AgentSVN is not timing out.
Agent SVN talks to the Subversion server using the SVN client, so in fact it is the SVN client (svn.exe) that is not timing out.

I did a quick Google search seeing if there is a way to set the client timeout but found nothing for the client, only details for the server.
AgentSVN just hangs forever. And with it the whole IDE. So the only remedy to that is, terminating the IDE with Windows Task Manager.
The client has an error for timeout so I suspect it would eventually time out but I don't know what that Subversion timeout value is.

My guess would be the official timeout is probably one or two minutes. So waiting for that time out is one option and the option I would recommend.

But failing that, I would never recommend killing the IDE for the reasons you suggest.

If waiting for the time out is not suitable then the next best option would be to kill the svn.exe client process instead.

Cheers Jussi

PhilS
Posts: 5
Joined: Mon Jul 20, 2015 4:19 pm

Re: Project Binding Details - "List..."-command hangs forever if server unreachable

Post by PhilS » Wed Jul 29, 2015 10:06 pm

Agent SVN talks to the Subversion server using the SVN client, so in fact it is the SVN client (svn.exe) that is not timing out.
OK, thanks for clarifying this.
The client has an error for timeout so I suspect it would eventually time out but I don't know what that Subversion timeout value is.
Alright, I have to correct myself. It does not hang forever. It actually times out after full 10 minutes. - That is quite close to forever in developer time. ;-)

A timeout value might be a sensible addition to the AgentSVN configuration.

You can add it to the svn.exe commandline like this:

Code: Select all

--config-option servers:global:http-timeout=XX
Where XX is the timeout in seconds.

BTW: Killing svn.exe rather the IDE is a good alternative. AgentSVN fails gracefully then. - Thanks for that.

PhilS
Posts: 5
Joined: Mon Jul 20, 2015 4:19 pm

Re: Project Binding Details - "List..."-command hangs forever if server unreachable

Post by PhilS » Wed Jul 29, 2015 10:17 pm

For anyone not too familiar with svn reading this:
You can set the http-timeout in the snv config file

Code: Select all

%appdata%\Subversion\servers
That does affect the timeout when invoked from AgentSVN as well. - So adding this option to the AgentSVN config is of fairly low priority.

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 2 guests