[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Http timeouts when using serf

From: Lieven Govaerts <svnlgo_at_mobsol.be>
Date: Mon, 23 Feb 2009 23:36:48 +0100

Support for http timeouts added in r36087.

Lieven

Bert Huijben wrote:
> Hi,
>
> I received a mail on the SharpSvn user list asking me how you can enable
> http-timeouts with serf. (Serf seems to gain some popularity because neon
> has that open branching issue).
>
> It looks like serf doesn't query our 'http-timeout' setting and just
> continues trying to connect indefinitely (at least on Windows).
>
> Any serf guru's around that can give me an hint on where to look?
>
> (The connection socket from apr is non blocking so I'm guessing we are in
> some kind of wait loop in serf).
>
>
> Bert
>
>> -----Original Message-----
>> From: seymen ertas [mailto:seymen{_AT_}hotmail.com]
>> Sent: Friday, February 13, 2009 4:43 PM
>> To: users{_AT_}sharpsvn.open.collab.net
>> Subject: [SharpSvn] http timeouts when using sharpsvn and serf
>>
>> Hi all,
>>
>> I am trying to get the timeouts to work properly when using sharpsvn
>> and serf library. I have set the following registry:
>>
>> HKEY_LOCAL_MACHINE\SOFTWARE\Tigris.org\Subversion\Servers\global\http-
>> timeout = 5
>>
>> This does not seem to cause any timeouts to occur during a checkout
>> call if for example the network cable gets unplugged. Application will
>> sit at the svnclient.checkout() function.
>>
>> I have also tried adding the value to %APPDATA%\Subversion\servers file
>> but this didn't seem to take affect either.
>>
>> Using the regular svn.exe (1.5.5) supplied by apache 2.2 seems to be
>> responding as expected to these timeouts (where an error is thrown and
>> the .exe quits gracefully).
>>
>> Also as an additional note on this subject I am using the http-library
>> also in the same registry location to switch between serf and neon and
>> this seems to be getting handled as expected (the library switch does
>> indeed happen). The time out also seems to be working as expected when
>> the neon library is in use where an error code of
>> "SVN_ERR_RA_DAV_REQUEST_FAILED" is returned and an error event is fired
>> by the sharpsvn library.
>>
>> Any recommendation regarding how to set the timeouts when using serf
>> will be much appreciated.
>>
>> Thank you
>> -seymen
>>
>> ------------------------------------------------------
>> http://sharpsvn.open.collab.net/ds/viewMessage.do?dsForumId=728&dsMessa
>> geId=300524
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1152919
>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1217099
Received on 2009-02-23 23:37:04 CET

This is an archived mail posted to the Subversion Dev mailing list.