Delivery-Date: Fri, 11 Jul 2014 23:56:56 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	FREEMAIL_FROM,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=ham
	version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 0D9211E0B9B
	for <archiver@seul.org>; Fri, 11 Jul 2014 23:56:54 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 349A930554;
	Sat, 12 Jul 2014 03:56:53 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 1094C305A7
 for <tor-talk@lists.torproject.org>; Sat, 12 Jul 2014 03:43:36 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at eugeni.torproject.org
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id wI_eDLkMevYY for <tor-talk@lists.torproject.org>;
 Sat, 12 Jul 2014 03:43:36 +0000 (UTC)
Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com
 [66.111.4.26])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by eugeni.torproject.org (Postfix) with ESMTPS id E54D3305A6
 for <tor-talk@lists.torproject.org>; Sat, 12 Jul 2014 03:43:35 +0000 (UTC)
Received: from compute1.internal (compute1.nyi.mail.srv.osa [10.202.2.41])
 by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id DAF76220E9
 for <tor-talk@lists.torproject.org>; Fri, 11 Jul 2014 23:43:31 -0400 (EDT)
Received: from web1 ([10.202.2.211])
 by compute1.internal (MEProxy); Fri, 11 Jul 2014 23:43:32 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=swift-mail.com; h=
 message-id:from:to:mime-version:content-transfer-encoding
 :content-type:in-reply-to:references:subject:date; s=mesmtp; bh=
 Swhe3mmU3eWzCeVLnayNbYr0AC0=; b=fEPUycSdDOuTg4I4RQkuRx78WGuD0Pcs
 UNb1s2aHImcfoe9tcX7yV75W8BLoLIT2eVWf3BjzxmuQ9eBb2Zw1LW4leYnaSPEp
 5+c0Y5l8pLQ9g0rrz0zEBjieOijfdUPcArMHVJhAEXIxK5XNsE8epG3lvR6lqnQ9
 4aNFwsO/iwY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
 messagingengine.com; h=message-id:from:to:mime-version
 :content-transfer-encoding:content-type:in-reply-to:references
 :subject:date; s=smtpout; bh=Swhe3mmU3eWzCeVLnayNbYr0AC0=; b=SFE
 BQkZTasr9iV5t8WZc5s5MZJFJ9ldWRYx6w7F1Qb3dxoQ95RKRBsRMZv2tTDOonpv
 p+ledgftfQmnYH6tOgBm5Bppx4dNKw4I0arbu6qPahTUTZ1hblD/DWFr4XPwYBrf
 x4Il7lGuaYJ3vytwVXPAYS8I3TEBRcP+AnO9LAgk=
Received: by web1.nyi.mail.srv.osa (Postfix, from userid 99)
 id C9145F01F44; Fri, 11 Jul 2014 23:43:31 -0400 (EDT)
Message-Id: <1405136611.2744.140794641.1B2F1EC2@webmail.messagingengine.com>
X-Sasl-Enc: 13ei2Iq1G79QB9MkKhgwyKrGqSg+exS1iFfn1uZ1qN2X 1405136611
From: Bron Taylor <bron.taylor@swift-mail.com>
To: tor-talk@lists.torproject.org
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface - ajax-4506780a
In-Reply-To: <CAJdkzEN9BWUBq99ri5vaZB2jV+Zt-e=4ZqJxvz7W_SiEPVGZ2w@mail.gmail.com>
References: <1404957666.1761.139983677.3C135016@webmail.messagingengine.com>
 <CAJdkzENSX92MnaVPFyZ-HNPbtbzLG1VEJk=Vuu0pnoWa3-RhyA@mail.gmail.com>
 <1405079279.3369.140528681.43B69BA2@webmail.messagingengine.com>
 <CAJdkzEN9BWUBq99ri5vaZB2jV+Zt-e=4ZqJxvz7W_SiEPVGZ2w@mail.gmail.com>
Date: Sat, 12 Jul 2014 11:43:31 +0800
Subject: Re: [tor-talk] How Tor fetchs the consensus file and maintains the
 cached-consensus file?
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

Hello Damian,

   Thanks for your kindly explanation. I have tried method c. you
   mentioned, and found that the returned exit node list with specified
   exit policy is not as the same as the result i obtained by quering
   "https://check.torproject.org/cgi-bin/TorBulkExitList.py". The
   mismatch of the results makes me confused. Can you help me to
   overcome this problem? thanks.

-- 
BR, BT

On Sat, Jul 12, 2014, at 12:17 AM, Damian Johnson wrote:
> Stem provides three methods for getting consensus data...
> 
> a. Fetch it from the Controller via methods like
> get_network_statuses()...
> 
>    https://stem.torproject.org/api/control.html#stem.control.Controller.get_network_statuses
> 
> b. Read it from disk as you're trying to do. There shouldn't be any
> reason to do this when running a relay. This capability is meant to be
> used for descriptor archives.
> 
> c. Downloading them via the stem.descriptor.remote module...
> 
>    https://stem.torproject.org/api/descriptor/remote.html
> 
> In this case method 'a' should be your best option.
> 
> Cheers! -Damian
> 
> On Fri, Jul 11, 2014 at 4:47 AM, Bron Taylor <bron.taylor@swift-mail.com>
> wrote:
> > Hello~
> >
> >     I am trying to develop a program that can automatically build a
> >     circuit with Stem library and send my data over the circuit to the
> >     destination anonymously. At the beginning, I tried to make my
> >     program read the "cached-consensus" file to get the propriate exit
> >     node, however, some of the exit nodes failed to relay the traffic
> >     for me. It seems the node was claiming it can relay the traffic to
> >     somewhere at some port but not working as well as it claimed.
> >     Therefore, I am looking forward to the way to get the whole list
> >     containing all of the exit nodes for my program to have more chance
> >     for choosing the most suitable exit node. Thank you.
> >
> > --
> > BR, BT
> >
> > On Fri, Jul 11, 2014, at 12:38 PM, Damian Johnson wrote:
> >> Hi Bron. What in particular are you trying to do?
> >>
> >>
> >> On Wed, Jul 9, 2014 at 7:01 PM, Bron Taylor <bron.taylor@swift-mail.com>
> >> wrote:
> >> > Dear All,
> >> >
> >> >     I am running a Tor client on my system and deveploping a software
> >> >     with Stem library. I found that Tor didn't download a whole list of
> >> >     consensus to local, but a cached-consensus which is just part of the
> >> >     whole list instead. I would like to ask and know how Tor maintains
> >> >     the cached-consensus file on local and how can I make tor to
> >> >     download the whole list? Can anyone help to answer my quesion or
> >> >     provide me any useful links? Thanks.
> >> >
> >> >
> >> >
> >> > --
> >> > BR, BT
> >> > --
> >> > tor-talk mailing list - tor-talk@lists.torproject.org
> >> > To unsubscribe or change other settings go to
> >> > https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> >> --
> >> tor-talk mailing list - tor-talk@lists.torproject.org
> >> To unsubscribe or change other settings go to
> >> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> > --
> > tor-talk mailing list - tor-talk@lists.torproject.org
> > To unsubscribe or change other settings go to
> > https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
> -- 
> tor-talk mailing list - tor-talk@lists.torproject.org
> To unsubscribe or change other settings go to
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

