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

Re: [PATCH] fix non interruptable hang in svn client when connecting

From: Yun Zheng Hu <yunzheng.hu_at_gmail.com>
Date: 2005-08-25 21:36:31 CEST

You are absolutely correct.

please replace:
 inet_addr("www.google.com");
with:
 inet_addr("localhost");

On 8/25/05, David James <james82@gmail.com> wrote:
> On 8/25/05, Yun Zheng Hu <yunzheng.hu@gmail.com> wrote:
> > server.sin_addr.s_addr = inet_addr("www.google.com");
> >
> > printf("Try killing this process..\n");
> >
> > do {
> > rc = connect(sock,
> > (const struct sockaddr *)&server,
> > sizeof(server));
> > } while (rc == -1);
> Yun:
>
> It is probably not a good idea to run this code, because it sends a
> potentially infinite number of requests to www.google.com. May I
> suggest targeting 127.0.0.1 instead, for test scripts?
>
> Cheers,
>
> David
>
>
> --
> David James -- http://www.cs.toronto.edu/~james
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 25 21:37:08 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.