From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4619 invoked by alias); 16 Sep 2009 08:27:38 -0000 Received: (qmail 4598 invoked by uid 22791); 16 Sep 2009 08:27:36 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ausfall.charite.de (HELO mail-ausfall.charite.de) (193.175.70.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Sep 2009 08:27:32 +0000 Received: from localhost (localhost [127.0.0.1]) by mail-ausfall.charite.de (Postfix) with ESMTP id 1DFCF3DC32 for ; Wed, 16 Sep 2009 10:27:30 +0200 (CEST) Received: from mail-ausfall.charite.de ([127.0.0.1]) by localhost (mail-ausfall.charite.de [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id N-CSVIDmQsfB for ; Wed, 16 Sep 2009 10:27:25 +0200 (CEST) Received: from postamt.charite.de (postamt.charite.de [141.42.206.36]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail-ausfall.charite.de (Postfix) with ESMTPS for ; Wed, 16 Sep 2009 10:27:25 +0200 (CEST) Received: from webmail.charite.de (webmail.charite.de [141.42.206.38]) by postamt.charite.de (Postfix) with ESMTP id 82CF4C3EA0 for ; Wed, 16 Sep 2009 10:27:24 +0200 (CEST) Received: from 141.42.56.215 (SquirrelMail authenticated user cgille) by webmail.charite.de with HTTP; Wed, 16 Sep 2009 10:27:03 +0200 Message-ID: In-Reply-To: <4AAFCDC3.6070001@cygwin.com> References: <4AAFAF04.6000300@cygwin.com> <37c66961aeaf7c4b1252db53d4da09ad.squirrel@webmail.charite.de> <4AAFCDC3.6070001@cygwin.com> Date: Wed, 16 Sep 2009 08:27:00 -0000 Subject: setup.exe: Determine Geographically closest mirror programmatically From: "Dr. Christoph Gille" To: cygwin@cygwin.com User-Agent: SquirrelMail/1.4.20RC1 MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-09/txt/msg00335.txt.bz2 > Closest mirror? I'm not sure what you mean by this. 'setup.exe' does not > require this as a setting. Actually, there is no such concept. You need to specify > a mirror to work with but you can do that with '-s'. With each superfluous click I lose a user, so it would be best if setup.exe would be run within http://3d-alignment.eu/ without user interaction. I am not a network specialist, but I see two possibilities how I could determine the closest cygwin mirror: (I) I could compare the IP numbers of all mirrors to the IP number of the client and make a guess of the geographically closest site. I would use the site where the first digits of the IP match best and I would then probe a short file to check whether the mirror is indeed working. (II) This is what I am currently using to determine the fastest database mirror for 3D-structures: I fetch a tiny probe file from each database mirror and take the one with the shortest respond time. This method is more simple but as there are that many cygwin mirrors, I am not sure whether I would run into problems. When I have the mirror I would set it with the command line option of setup.exe. I think this would work and could be done easily. Do you have other ideas? Could you please tell me the URL of the file with the cygwin mirror list? Cheers Christoph -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple