[Twisted-Python] tor hidden service endpoint parser returns a deferred

Tristan Seligmann mithrandi at mithrandi.net
Fri May 2 08:20:38 MDT 2014


On 2 May 2014 15:59, David Stainton <dstainton415 at gmail.com> wrote:
> This will work fine for the txsocksx tor client endpoint parser I
> wrote... However the txtorcon Tor Hidden Service endpoint setup
> requires a deferred to fire once the tor process is started... This
> means that the endpoint parser needs to return a deferred. But this
> breaks the interface!... meaning that foolscap or any other api using
> this onion endpoint parser will have to special case the situation
> where serverFromString returns a deferred.

I think you're approaching this from the wrong angle; instead of
starting the tor process during parsing of the endpoint, I think it
would make more sense to start the tor process when the endpoint is
started.
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar



More information about the Twisted-Python mailing list