Eugene V. Lyubimkin wrote:

> Is there some RFC spec about 'use the same IP if you need
> consistence?' or like?

I was too focused on DNS before, and there is no problem there.  Of
course DNS does exactly what we want it to here.

However, a case could be made that the inconsistency between APT
mirrors served under the same hostname breaks HTTP (and perhaps
violates it, though I haven’t found a relevant passage), since an HTTP
proxy could ask the DNS resolver for a new server to connect to at any
time.

(Just to be clear, there is no redirection involved here.)

 $ wget -S http://ftp.us.debian.org/debian/dists/unstable/Release
 --2010-05-20 19:34:35--
 http://ftp.us.debian.org/debian/dists/unstable/Release
 Resolving ftp.us.debian.org... 35.9.37.225, 64.50.236.52, 128.30.2.36,
 ...
 Connecting to ftp.us.debian.org|35.9.37.225|:80... connected.
 HTTP request sent, awaiting response... 
   HTTP/1.1 200 OK
 [...]

Should apt’s HTTP method be using IP addresses in its requests
instead?  Would this be safe, or do some mirrors use virtual hosts?

Jonathan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to