#26888 [WFx->Csd]: my.php could use the mirror closest to proxy instead of user machine

From: Date: Mon, 19 Jan 2004 21:16:53 +0000
Subject: #26888 [WFx->Csd]: my.php could use the mirror closest to proxy instead of user machine
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-23055@lists.php.net to get a copy of this message
ID: 26888 User updated by: cjbj at hotmail dot com Reported By: cjbj at hotmail dot com -Status: Wont fix +Status: Closed Bug Type: Website problem Operating System: n/a PHP Version: Irrelevant New Comment: No probs. Previous Comments: ------------------------------------------------------------------------ [2004-01-19 10:36:42] goba@php.net As you can see in the code of i2c_realip() implemented in ip-to-country.inc [1], we try to do our best NOT TO use the proxy server. This is because there might be a proxy server attached to the server to load-balance... Also we need the country information to display events in a special form, so we need the user's country, and not the proxy's country. If we would not select a mirror for you, then you would probably use www.php.net without a thought, and it is in the US. So your autoswitching load-balancer would not be served better that way either... [1] http://php.net/source.php?url=/include/ip-to-country.inc ------------------------------------------------------------------------ [2004-01-12 20:23:00] cjbj at hotmail dot com Description: ------------ The mirror chosen by php.net seems to be the closest one to my physical location. It would be marginally faster/better if the nearest mirror to the proxy server I am using was chosen. Although I can choose a mirror on the my.php page, I sometimes need to change the browser proxy (to one in another country on the corporate network). Also, by default, a load balancer automatically chooses the proxy for me. These negate the benefits of setting a mirror. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26888&edit=1

« previous php.mirrors (#23055) next »