diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-05-12 16:17:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-05-13 09:38:48 -0400 |
commit | c36efb0c451b3cc55d6ebf634af451f9d0b542b9 (patch) | |
tree | 168d215b6eb227ab8186f08ec00690a36826e599 /ChangeLog | |
parent | a28215a150818b11e128f5f5aeb44e53a40d5af7 (diff) | |
download | tor-c36efb0c451b3cc55d6ebf634af451f9d0b542b9.tar.gz tor-c36efb0c451b3cc55d6ebf634af451f9d0b542b9.zip |
Use a mutex to protect the count of open sockets.
This matters because a cpuworker can close its socket when it
finishes. Cpuworker typically runs in another thread, so without a
lock here, we can have a race condition and get confused about how
many sockets are open. Possible fix for bug 939.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -5,6 +5,9 @@ Changes in version 0.2.1.15??? - ????-??-?? Bugfix on 0.2.0.9-alpha. - Provide a more useful log message if bug 977 (related to buffer freelists) ever reappears, and do not crash right away. + - Protect the count of open sockets with a mutex, so we can't + corrupt it when two threads are closing or opening sockets at once. + Fix for bug 939. Bugfix on 0.2.0.1-alpha. Changes in version 0.2.1.14-rc - 2009-04-12 |