Re: hostname_cache bug in Query.pike

2008-07-30 Thread Stephen R. van den Berg
Mirar @ Pike developers forum wrote: Would it be possible for someone to sneak in this bugfix in Query.pike at some stage? + return + hostname_cache[hostname] = +( sizeof(hosts) hosts[random(sizeof( hosts ))] ); to make the hostname_cache in Protocols.HTTP.Session work as

Re: hostname_cache bug in Query.pike

2008-07-30 Thread Mirar @ Pike developers forum
...so, for a new Query object the hostname_cache will always be empty, unless you supply it from some other direction before you start using the query object. So this doesn't affect for instance Protocols.HTTP.get_url et al, but it will affect Protocols.HTTP.Session()-get_url.

Re: hostname_cache bug in Query.pike

2008-07-30 Thread Mirar @ Pike developers forum
It's probably a good idea to implement, yes. (But not for 7.8...?) It works with supplying the query object with the mapping you are using for the session. From HTTP/Session.pike: q-hostname_cache=hostname_cache;

Re: hostname_cache bug in Query.pike

2008-07-30 Thread Stephen R. van den Berg
Mirar @ Pike developers forum wrote: It's probably a good idea to implement, yes. (But not for 7.8...?) It works with supplying the query object with the mapping you are using for the session. From HTTP/Session.pike: q-hostname_cache=hostname_cache; For a session. Hrm. Well, let's put

Re: hostname_cache bug in Query.pike

2008-07-30 Thread Per Hedbor () @ Pike (-) developers forum
Browsers are supposed to cache dns-ip util they are restarted. http://christ1an.blogspot.com/2007/07/dns-pinning-explained.html

hostname_cache bug in Query.pike

2008-07-29 Thread Mirar @ Pike developers forum
Would it be possible for someone to sneak in this bugfix in Query.pike at some stage? --- lib/modules/Protocols.pmod/HTTP.pmod/Query.pike.old 2007-04-15 14:24:41.0 +0200 +++ lib/modules/Protocols.pmod/HTTP.pmod/Query.pike2008-07-29 09:04:35.0 +0200 @@ -500,7 +500,9 @@