Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 1999 22:50:02 -0700 (PDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/11296: fetch(1) fails to resolve names in http mode under SOCKS5
Message-ID:  <199907060550.WAA73894@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/11296; it has been noted by GNATS.

From: Mikhail Teterin <mi@aldan.algebra.com>
To: freebsd-gnats-submit@freebsd.org, mi@aldan.algebra.com
Cc:  
Subject: Re: bin/11296: fetch(1) fails to resolve names in http mode under SOCKS5
Date: Tue, 06 Jul 1999 01:48:45 -0400

 This is a multi-part message in MIME format.
 --------------0E9E235F77A464A42258D8EE
 Content-Type: text/plain; charset=koi8-r
 Content-Transfer-Encoding: 7bit
 
 The gethostbyname2 used in the fetch's http.c is not implemented
 by the Socks' libsocks5_sh.so. The attached simple patch makes fetch
 resolve the names, but fetch still does not work -- this time with the
 ``No route to host''. Some other piece of code needs to be altered to
 only use calls provided for by the Socks5 wrapper library.
 
 Someone with better understanding of network programming has to take
 a look at it...
 
 -- 
                          |\__-----__/|
                     _____/ :::::  :::\_____ 
                    '__--( ::::::::..::)--__`	-mi
 If you have a      /  _- \/  :::::::\/ -_  
 serious knowledge    /   / :.   .::::\   \
 about computers --      | ::::::::::::|  	Ok, let's say you broke 
 keep it in a secret!   _|/ ::::____::\|_	the wall with your head
 "Rules of dating",   /  /:::::/:_::\::\:.\      What are you going to
 'Playboy', ? 1994   | :|  ..:(_/ \::|::|::|	do in the next cell?
                     | :|:::::. ::|: |::|.:|	      Stanislaw J. Lec
                      \ |::  :::_/::/: :|:/
                    ((___\____\____/___/___))
 --------------0E9E235F77A464A42258D8EE
 Content-Type: text/plain; charset=koi8-r;
  name="http.c.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="http.c.patch"
 
 --- http.c.dumb	Sat Jun 26 13:22:18 1999
 +++ http.c	Tue Jul  6 01:38:16 1999
 @@ -485,3 +485,3 @@
  		/* XXX - do timeouts for name resolution? */
 -		hp = gethostbyname2(https->http_hostname, AF_INET);
 +		hp = gethostbyname(https->http_hostname);
  		if (hp == 0) {
 
 --------------0E9E235F77A464A42258D8EE
 Content-Type: text/x-vcard; charset=koi8-r;
  name="mi.vcf"
 Content-Transfer-Encoding: 7bit
 Content-Description: Card for Mikhail Teterin
 Content-Disposition: attachment;
  filename="mi.vcf"
 
 begin:vcard 
 n:Teterin;Mikhail
 x-mozilla-html:FALSE
 org:Virtual Estates, Inc.
 adr:;;;;;;
 version:2.1
 email;internet:mi@aldan.algebra.com
 title:President
 x-mozilla-cpt:;0
 fn:Mikhail Teterin
 end:vcard
 
 --------------0E9E235F77A464A42258D8EE--
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907060550.WAA73894>