[tor-bugs] #8607 [Stem]: Controller's cache isn't thread safe

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Apr 4 17:16:10 UTC 2013


#8607: Controller's cache isn't thread safe
-----------------------------+----------------------------------------------
 Reporter:  atagar           |          Owner:  atagar      
     Type:  defect           |         Status:  needs_review
 Priority:  normal           |      Milestone:              
Component:  Stem             |        Version:              
 Keywords:  controller easy  |         Parent:              
   Points:                   |   Actualpoints:              
-----------------------------+----------------------------------------------
Changes (by axitkhurana):

  * status:  new => needs_review


Comment:

 I've tried to make cache requests thread safe. Please take a look here:

 https://github.com/axitkhurana/stem/commit/7384db06fe1167db3978262e5dfbac4720d689a6

 Two functions created:

 for reads: _get_cache
 for writes: _update_cache

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


More information about the tor-bugs mailing list