nskinkel / oppy

A Tor client (onion proxy) implementation in Python
BSD 3-Clause "New" or "Revised" License
24 stars 3 forks source link

Building Circuits Preemptively #30

Closed dwtj closed 9 years ago

dwtj commented 10 years ago

Section 2.2.1 of path-spec.txt describes the process by which circuits are built preemptively. I propose that for now we ignore this feature to keep our circuit manager implementation simple.

For now, let's make circuit construction/destruction happen on-demand, that is,

  1. a circuit is created when a client's stream is opened and
  2. that circuit is destroyed when that stream closes.
nskinkel commented 10 years ago

Agreed. I like this change, and it'll make it easier to get a quick prototype running.

nskinkel commented 9 years ago

fixed in ecd3e1472998d67f82155b3a166d0d2576d7478d