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

Problems with r15909 (ra_svn connect timeout)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-12-08 19:48:32 CET

In August, Karl committed r15909:

  Fix a bug whereby connecting to a non-existent repository can cause
  apr_socket_connect() to hang non-interruptably. To reproduce, try
  'svn co svn://svn.edgewall.com'.

  Patch by: Yun Zheng Hu <yunzheng.hu@gmail.com>
  (Tweaked by me to use apr_socket_set_timeout instead of apr_setsocketopt.)

Karl committed the patch with a note to the mailing list:

  However, I think I'm going to commit the latest patch. It seems like
  it is an improvement for some people, and at least not harmful for
  everyone else.

I have three problems with this patch:

  * It doesn't reset the socket timeout after connecting, so it has
    the unintended consequence of introducing a 30s timeout in ra_svn,
    although that timeout gets unset for some operations once you go
    into a pipelined edit.

  * We should not be introducing an unconfigurable 30-second timeout
    on making network connections. The connect timeout is an OS
    decision, not a we-hardcode-it-in-Subversion decision.

  * The patch was predicated on the notion that OSX has some horrible
    bug related to interrupting blocking connects. *Lots and lots* of
    programs do blocking connects. If OSX really has or had an issue
    related to doing that (and I think we pretty much took the patch
    submitter's word for that), I don't think the answer is for every
    piece of code to change to doing non-blocking connects.

Karl, please revert the change.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 8 20:59:15 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.