[tor-bugs] #11015 [Obfsproxy]: UniformDH should not block the main event loop

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Feb 23 21:32:19 UTC 2014


#11015: UniformDH should not block the main event loop
---------------------------+-----------------------------------------------
     Reporter:  yawning    |      Owner:  asn
         Type:  defect     |     Status:  new
     Priority:  normal     |  Milestone:
    Component:  Obfsproxy  |    Version:
   Resolution:             |   Keywords:  python, UniformDH, cpu exhaustion
Actual Points:             |  Parent ID:
       Points:             |
---------------------------+-----------------------------------------------

Comment (by infinity0):

 Oh, another thing: you can just pass in simply `self.dh.get_secret` as the
 task to `deferToThread`, instead of spending 8 lines to define a separate
 `_uniform_dh_task`.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11015#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list