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

Re: Client hangs when svnserve does not respond

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-06-23 19:08:15 CEST

On Thu, 2005-06-23 at 09:47 -0500, kfogel@collab.net wrote:
> If that's the issue, we could either:
> a) Untrap the interrupt handler during that wait.
> b) Wait for the server in a non-blocking or semi-blocking way.
> I'm hand-waving a bit, but are there any solutions along these lines?

Yeah, we could set a timeout on the socket and call the cancellation
function between repeated read calls, assuming the cancellation function
is available to the RA layer.

That's not really the ideal solution; from the perspective of what
system calls we generate, it would be better to make sure that the
read() isn't set to be restartable and call the cancellation function
when we get the EINTR. But I'm not sure if APR makes that feasible. I
think it blithely restarts system calls under the covers without
considering this issue.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 23 19:18:20 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.