[tor-commits] [stem/master] Always test for lingering threads

2020-07-15 Thread atagar
commit f4b77a2c9194aa964aec0e633255e549186b7f2d Author: Damian Johnson Date: Tue Jul 14 14:54:01 2020 -0700 Always test for lingering threads Our unit tests are just as liable to orphan threads as our integration tests. It's confusing to only detect unit test leaks when runnin

[tor-commits] [stem/master] Permit all controller types by connect()

2020-07-15 Thread atagar
commit 46dec7b974a7a835f9b1ff58e5d905f75110afde Author: Damian Johnson Date: Wed Jul 15 17:04:04 2020 -0700 Permit all controller types by connect() Our 'controller' argument's limitations were an artifact of having a separate sync/async Controller. We can also drop our _conne

[tor-commits] [stem/master] Resume Synchronous when async methods are called

2020-07-15 Thread atagar
commit 75834c06d1d2ade574f11c95f980143408350f11 Author: Damian Johnson Date: Tue Jul 14 14:12:47 2020 -0700 Resume Synchronous when async methods are called When our Synchronous class was stopped all further invocations of an async method raised a RuntimeError. For most classes

[tor-commits] [stem/master] Use Synchronous for Controller

2020-07-15 Thread atagar
commit dc93ee7257b9a0eed1a4632dec3c7b16a65e9782 Author: Damian Johnson Date: Thu Jun 25 16:13:54 2020 -0700 Use Synchronous for Controller Finally migrating our Controller class from Illia's AsyncClassWrapper to our Synchronous mixin. Benefits are... * Class

[tor-commits] [stem/master] Make Synchronous class resumable

2020-07-15 Thread atagar
commit 9f71ce9b21d8c710025a440e69920006e37eeb88 Author: Damian Johnson Date: Tue Jul 7 18:38:06 2020 -0700 Make Synchronous class resumable Our Controller needs to start and stop with its connect/close methods, so we need for this to be resumable. --- stem/util/__init__.py

[tor-commits] [stem/master] Migrate to asyncio

2020-07-15 Thread atagar
commit 6f8f8d5c26079ed0e1e08bbb5815f2f39891a46e Merge: 8634aa04 46dec7b9 Author: Damian Johnson Date: Wed Jul 15 18:10:33 2020 -0700 Migrate to asyncio Python 3.5 added asyncio, an asynchronous IO framework similar to Twisted... https://www.python.org/dev/peps/pep-0492/

[tor-commits] [stem/master] Synchronous context management

2020-07-15 Thread atagar
commit 8b539f2facdd86d07e76b5bf5daa379bf0d3d2ba Author: Damian Johnson Date: Thu Jul 9 17:29:58 2020 -0700 Synchronous context management Make our class handle 'with' statements, and tidy up both its implementation and tests. --- stem/util/__init__.py | 79 +--

[tor-commits] [stem/master] Synchronous class mockability

2020-07-15 Thread atagar
commit ef1e41ebce0aa1bb5fde9064410402bee9887451 Author: Damian Johnson Date: Wed Jul 8 17:12:39 2020 -0700 Synchronous class mockability The meta-programming behind our Synchronous class doesn't play well with test mocks. Handling this, and testing the permutations I can think

[tor-commits] [stem/master] Get rid of `_recv_lock`

2020-07-15 Thread atagar
commit b313a4211e08382afdf7dc51a99a181e1b54cbb1 Author: Illia Volochii Date: Tue May 26 22:12:04 2020 +0300 Get rid of `_recv_lock` --- stem/socket.py | 53 - 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/stem/socket.py

[tor-commits] [stem/master] Fix `AsyncController._event_listeners_lock`

2020-07-15 Thread atagar
commit e1dff48079d60674c7530871875666f054973c6a Author: Illia Volochii Date: Sun May 17 16:59:09 2020 +0300 Fix `AsyncController._event_listeners_lock` --- stem/control.py | 61 - 1 file changed, 30 insertions(+), 31 deletions(-) dif

[tor-commits] [stem/master] Implement setting docstrings of `stem.control.Controller` methods

2020-07-15 Thread atagar
commit 26d480d6b10ef57097c9f40e44112408d1c1 Author: Illia Volochii Date: Sun May 17 20:10:22 2020 +0300 Implement setting docstrings of `stem.control.Controller` methods --- stem/control.py | 80 +++-- 1 file changed, 78 insertions(+)

[tor-commits] [stem/master] Synchronous mixin

2020-07-15 Thread atagar
commit 1cbf3397ccbb77ea7df35109839a522dcf03556b Author: Damian Johnson Date: Sat Jun 20 16:31:17 2020 -0700 Synchronous mixin Illia's AsyncClassWrapper does the trick but I think we can make this more transparent. Lets try a mixin that overwrites asyncio methods dynamically.

[tor-commits] [stem/master] Fix deadlock when stopping from an async context

2020-07-15 Thread atagar
commit a2e0da98669a7a173e25a6abe6e3e2e996be8e67 Author: Damian Johnson Date: Sun Jul 12 17:01:18 2020 -0700 Fix deadlock when stopping from an async context Reentrant locks can only be acquired multiple from within the same thread. When our _run_async_method() invoked start()

[tor-commits] [stem/master] Update `BaseController._event_loop` to keep the previous behavior

2020-07-15 Thread atagar
commit 0dcb75bbaac67cd1c461f3bbc3fe5550c47072ef Author: Illia Volochii Date: Thu May 21 22:52:22 2020 +0300 Update `BaseController._event_loop` to keep the previous behavior --- stem/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stem/control.py b/stem/control.py index be

[tor-commits] [stem/master] Switch to asyncio locks in socket classes to make them usable too

2020-07-15 Thread atagar
commit cad4b7204b7bbec52f3eb5b04811f332a12aa85d Author: Illia Volochii Date: Sun May 24 02:23:16 2020 +0300 Switch to asyncio locks in socket classes to make them usable too --- stem/control.py | 18 +++ stem/socket.py | 93 -

[tor-commits] [stem/master] Use `asyncio.Queue.put_nowait` instead of `put` that needs awaiting

2020-07-15 Thread atagar
commit 8ebbeec288b849c7944af925d1d00814a1ef17c7 Author: Illia Volochii Date: Thu May 21 22:39:52 2020 +0300 Use `asyncio.Queue.put_nowait` instead of `put` that needs awaiting --- stem/control.py | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/s

[tor-commits] [stem/master] Update docstrings in stem/socket.py

2020-07-15 Thread atagar
commit 152497ffaff55edc956f7423ab03e90697a252d3 Author: Illia Volochii Date: Sun May 17 18:29:57 2020 +0300 Update docstrings in stem/socket.py --- stem/socket.py | 54 -- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/st

[tor-commits] [stem/master] Update docstrings in stem/connection.py

2020-07-15 Thread atagar
commit cfd1f3d74f0dbb118c948d8520437498b5a30465 Author: Illia Volochii Date: Sun May 17 19:06:25 2020 +0300 Update docstrings in stem/connection.py --- stem/connection.py | 115 ++--- 1 file changed, 82 insertions(+), 33 deletions(-) diff --

[tor-commits] [stem/master] Start shutting down controllers after running controller unit tests

2020-07-15 Thread atagar
commit cb55eeac8ae78aada114d229aa1cc076b62ba821 Author: Illia Volochii Date: Sun May 24 01:12:21 2020 +0300 Start shutting down controllers after running controller unit tests --- test/unit/control/controller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/control/contr

[tor-commits] [stem/master] Update docstrings in stem/descriptor/remote.py

2020-07-15 Thread atagar
commit 9310094a8844531aeadc53caa2df5ca503fb3d34 Author: Illia Volochii Date: Sun May 17 19:30:17 2020 +0300 Update docstrings in stem/descriptor/remote.py --- stem/descriptor/remote.py | 213 -- 1 file changed, 167 insertions(+), 46 deletions(-)

[tor-commits] [stem/master] Match loop scope to thread

2020-07-15 Thread atagar
commit 007cf1ae5654ac057cc56dc06364561ce1d25c58 Author: Damian Johnson Date: Mon Jul 13 16:09:35 2020 -0700 Match loop scope to thread Asyncio threads can be restarted, but doing so lacks a significant benefit and can get complicated. For instance, when we're stopped from an a

[tor-commits] [stem/master] Fix `stem.connection._msg` operating a synchronous controller

2020-07-15 Thread atagar
commit 0be69071af23ed6cb753188160e29bfbcfab328c Author: Illia Volochii Date: Thu Apr 30 19:30:52 2020 +0300 Fix `stem.connection._msg` operating a synchronous controller --- stem/connection.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stem/connection.py b/stem

[tor-commits] [stem/master] Rewrite descriptor downloading

2020-07-15 Thread atagar
commit 448060eabed41b3bad22cc5b0a5b5494f2793816 Author: Damian Johnson Date: Mon Jun 15 16:23:40 2020 -0700 Rewrite descriptor downloading Using run_in_executor() here has a couple issues... 1. Executor threads aren't cleaned up. Running our tests with the '--all'

[tor-commits] [stem/master] Drop ThreadForWrappedAsyncClass

2020-07-15 Thread atagar
commit 675f49fcbe6dc1a52d10215c07adff56001faa70 Author: Damian Johnson Date: Sat May 30 17:21:57 2020 -0700 Drop ThreadForWrappedAsyncClass To call an asynchronous function we require a loop and thread for it to run within... def call(my_async_function): loop

[tor-commits] [stem/master] Make `test.runner.Runner.get_tor_controller` synchronous

2020-07-15 Thread atagar
commit a7fbfadee6e11c270a37e93c4d67363bbbcd6629 Author: Illia Volochii Date: Thu May 21 23:25:38 2020 +0300 Make `test.runner.Runner.get_tor_controller` synchronous --- test/integ/connection/authentication.py | 9 +- test/integ/control/controller.py| 245 +

[tor-commits] [stem/master] Add type hints to new functions

2020-07-15 Thread atagar
commit fb803c96db3ac357850b93730a33154adc719a89 Author: Illia Volochii Date: Sun May 17 17:40:29 2020 +0300 Add type hints to new functions --- stem/descriptor/remote.py | 4 ++-- stem/util/__init__.py | 31 +-- stem/util/test_tools.py | 8 3 fi

[tor-commits] [stem/master] Add the mypy cache folder to .gitignore

2020-07-15 Thread atagar
commit a7f190e37417f90de2b255a178a78dbe093b8d5a Author: Illia Volochii Date: Sun May 17 16:13:15 2020 +0300 Add the mypy cache folder to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d8c1f13d..67405a22 100644 --- a/.gitignore ++

[tor-commits] [stem/master] Investigate an async ainit method

2020-07-15 Thread atagar
commit ef06783b96ee38230b41cc08c14032d7127f867b Author: Damian Johnson Date: Tue Jul 7 16:03:11 2020 -0700 Investigate an async ainit method Our ainit method should be asynchronous, but guess that's not to be. Documenting the issues we encountered. --- stem/util/__init__.py |

[tor-commits] [stem/master] Make requesting for descriptor content asynchronous

2020-07-15 Thread atagar
commit 841e2105147177f5959987c8bec1179dc94a59b3 Author: Illia Volochii Date: Thu May 14 00:08:59 2020 +0300 Make requesting for descriptor content asynchronous --- stem/client/__init__.py | 91 +- stem/descriptor/remote.py | 138 ++

[tor-commits] [stem/master] Replace `CombinedReentrantAndAsyncioLock` with the plain `asyncio.Lock`

2020-07-15 Thread atagar
commit 6be7d88f9e6bf82e5ae20813e6294c6862ea58c6 Author: Illia Volochii Date: Sun May 24 02:29:32 2020 +0300 Replace `CombinedReentrantAndAsyncioLock` with the plain `asyncio.Lock` `CombinedReentrantAndAsyncioLock` cannot be used in multiple threads anyway. --- stem/client/__init__

[tor-commits] [stem/master] Move utility functions for asynchronous tests to `stem.util.test_tools`

2020-07-15 Thread atagar
commit 2b8b8fd51c74af4509f8745f22d081191dbe63b5 Author: Illia Volochii Date: Thu Apr 30 19:52:42 2020 +0300 Move utility functions for asynchronous tests to `stem.util.test_tools` --- stem/util/test_tools.py | 26 ++ test/async_util.py

[tor-commits] [stem/master] Correct rebase discrepancies

2020-07-15 Thread atagar
commit 18a3280d9cb27a81bb01d8e964449adda3dc734e Author: Damian Johnson Date: Mon May 18 14:43:18 2020 -0700 Correct rebase discrepancies To make Illia's branch cleanly mergable I rebased onto our present master. Manually resolving the conflicts resulted in a slightly different

[tor-commits] [stem/master] Constructor method with an async context

2020-07-15 Thread atagar
commit 5406561385cb2e5274ddda732b6e1d6fb014a2c5 Author: Damian Johnson Date: Sun Jun 28 14:33:40 2020 -0700 Constructor method with an async context Many asyncio classes can only be constructed within a running loop. We can't presume that our __init__() has that, so adding an _

[tor-commits] [stem/master] Start awaiting finishing of the loop tasks while closing controllers

2020-07-15 Thread atagar
commit f9de9a9612d639337090715e0b84d44129a0288a Author: Illia Volochii Date: Sun May 24 01:18:31 2020 +0300 Start awaiting finishing of the loop tasks while closing controllers --- stem/control.py | 17 ++--- test/integ/control/base_controller.py | 11

[tor-commits] [stem/master] Use Synchronous for Query

2020-07-15 Thread atagar
commit 69be99b4aaa0ebdb038266103a7c9e748e38ef3b Author: Damian Johnson Date: Wed Jun 24 17:47:23 2020 -0700 Use Synchronous for Query Time to use our mixin in practice. Good news is that it works and *greatly* deduplicates our code, but it's not all sunshine and ponies...

[tor-commits] [stem/master] Fix errors in static checks of my IDE

2020-07-15 Thread atagar
commit 66d597e90741260341ec264ea774f3089d43f7b9 Author: Illia Volochii Date: Thu May 14 00:12:02 2020 +0300 Fix errors in static checks of my IDE --- stem/control.py | 2 +- stem/descriptor/remote.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/cont

[tor-commits] [stem/master] Fix mypy errors related to `stem.descriptor.remote.Query` attributes

2020-07-15 Thread atagar
commit 626d540d2d5fc6c9039ff738546795e7818324e9 Author: Illia Volochii Date: Sun May 17 17:57:18 2020 +0300 Fix mypy errors related to `stem.descriptor.remote.Query` attributes --- stem/descriptor/remote.py | 93 ++- 1 file changed, 67 insertions

[tor-commits] [stem/master] Add docstrings to new functions used for tests

2020-07-15 Thread atagar
commit 33fd00ede9b984de5d488402f2ba699a601e4ce0 Author: Illia Volochii Date: Sun May 17 20:22:57 2020 +0300 Add docstrings to new functions used for tests --- stem/util/test_tools.py | 26 ++ 1 file changed, 26 insertions(+) diff --git a/stem/util/test_tools.py b/s

[tor-commits] [stem/master] Fix a problem with a missing argument

2020-07-15 Thread atagar
commit 05d67e3a819f82d2545c6e9039d39a8512c13686 Author: Illia Volochii Date: Mon Apr 27 19:57:13 2020 +0300 Fix a problem with a missing argument --- stem/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/connection.py b/stem/connection.py index 5da9270

[tor-commits] [stem/master] Refactor defining a thread for the asynchronous controller

2020-07-15 Thread atagar
commit 67f2bc72489e48d7ebe07945b37b79941d046d1f Author: Illia Volochii Date: Mon Apr 27 18:50:10 2020 +0300 Refactor defining a thread for the asynchronous controller --- stem/control.py | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/

[tor-commits] [stem/master] Fix most of the integration tests

2020-07-15 Thread atagar
commit 00e719e07c9a9993607b96d0151aa1baf943d91e Author: Illia Volochii Date: Thu Apr 30 19:43:53 2020 +0300 Fix most of the integration tests --- test/{unit => }/async_util.py | 0 test/integ/connection/authentication.py | 143 + test/integ/connection/connect.py

[tor-commits] [stem/master] Get rid of `_ControllerClassMethodMixin` to fix type checks

2020-07-15 Thread atagar
commit 1458e0899eea60763416632406b658a6dca69b6d Author: Illia Volochii Date: Sun May 17 16:12:13 2020 +0300 Get rid of `_ControllerClassMethodMixin` to fix type checks --- stem/control.py | 106 +--- 1 file changed, 70 insertions(+), 36 d

[tor-commits] [stem/master] Prepare to creating and wrapping one more asynchronous class

2020-07-15 Thread atagar
commit 79e8c1b47c63dfd49b62ec47c1b7902f51b06a83 Author: Illia Volochii Date: Thu May 14 00:06:49 2020 +0300 Prepare to creating and wrapping one more asynchronous class --- stem/connection.py | 2 +- stem/control.py | 108 ---

[tor-commits] [stem/master] Fix monkey patches of the `_handle_event` method

2020-07-15 Thread atagar
commit 2a65ee4bb3cd4a25baf14918cd7bb1c614be361e Author: Illia Volochii Date: Thu Apr 30 19:32:25 2020 +0300 Fix monkey patches of the `_handle_event` method --- stem/interpreter/__init__.py | 5 - stem/interpreter/commands.py | 9 + 2 files changed, 9 insertions(+), 5 deletions

[tor-commits] [stem/master] Remove an unused import

2020-07-15 Thread atagar
commit 94f65d97f85fb577a69f42cea35079e4245835fd Author: Illia Volochii Date: Mon Apr 27 19:55:52 2020 +0300 Remove an unused import --- stem/connection.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stem/connection.py b/stem/connection.py index 6b985725..5da92709 100644 --- a/stem/c

[tor-commits] [stem/master] Fix `ControlMessage.from_str`

2020-07-15 Thread atagar
commit 9daac91a13507b39ceb7b05634aa3a8364ba891f Author: Illia Volochii Date: Sun Apr 26 21:49:42 2020 +0300 Fix `ControlMessage.from_str` --- stem/response/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/response/__init__.py b/stem/response/__init__.py

[tor-commits] [stem/master] Return the previous behavior when socket was automatically connected

2020-07-15 Thread atagar
commit 74bb5df6edfdb92cf504b86c4d9253e4cc6a5c96 Author: Illia Volochii Date: Thu Apr 23 22:54:26 2020 +0300 Return the previous behavior when socket was automatically connected --- stem/control.py | 12 1 file changed, 12 insertions(+) diff --git a/stem/control.py b/stem/cont

[tor-commits] [stem/master] Stop joining the thread for the asynchronous controller while closing

2020-07-15 Thread atagar
commit fe14b7164a10868c7bec12a7d25810bbbc6813b9 Author: Illia Volochii Date: Thu Apr 30 19:25:38 2020 +0300 Stop joining the thread for the asynchronous controller while closing If it is joined, it will not be possible to reconnect. --- stem/control.py | 6 -- 1 file changed,

[tor-commits] [stem/master] Stop canceling asynchronous tasks for reader and event loops

2020-07-15 Thread atagar
commit 163b3b383bc88cc373f9b97f8f458995f09bf498 Author: Illia Volochii Date: Thu Apr 30 19:29:37 2020 +0300 Stop canceling asynchronous tasks for reader and event loops They finish automatically when detect that their controller is not alive. --- stem/control.py | 6 +- 1 file

[tor-commits] [stem/master] Optimize `_MsgLock` a little bit

2020-07-15 Thread atagar
commit 2b4d3666ef9d3a9faf6742bd5ccfdef88cfbe4fd Author: Illia Volochii Date: Thu Apr 30 19:30:00 2020 +0300 Optimize `_MsgLock` a little bit --- stem/control.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stem/control.py b/stem/control.py index ff0f3bc1..6de671b6 100644 --- a/ste

[tor-commits] [stem/master] Fix `stem.connection.connect`

2020-07-15 Thread atagar
commit a8e92bbb1532f25da843a29b1b771eeb80c477bd Author: Illia Volochii Date: Mon Apr 27 18:57:02 2020 +0300 Fix `stem.connection.connect` --- stem/connection.py | 39 +++ stem/control.py| 10 +++--- 2 files changed, 26 insertions(+), 23 deletions

[tor-commits] [stem/master] Make it possible to use a function to connect to the async controller

2020-07-15 Thread atagar
commit 459612e63181218d79d2a42ab5b0eebd0cb206bf Author: Illia Volochii Date: Tue Apr 28 23:54:52 2020 +0300 Make it possible to use a function to connect to the async controller --- stem/connection.py | 76 - stem/control.py

[tor-commits] [stem/master] Implement public methods of `AsyncController` in the synchronous wrapper

2020-07-15 Thread atagar
commit d58820b705cfb841117f4bce25e95775778a855d Author: Illia Volochii Date: Thu Apr 23 22:33:58 2020 +0300 Implement public methods of `AsyncController` in the synchronous wrapper --- stem/control.py | 185 1 file changed, 185 inser

[tor-commits] [stem/master] Create a synchronous version of `recv_message`

2020-07-15 Thread atagar
commit 1fc0535bf3d423f361755c03ba5ff51c4c91593b Author: Illia Volochii Date: Sat Apr 25 19:08:07 2020 +0300 Create a synchronous version of `recv_message` --- stem/socket.py | 120 + 1 file changed, 120 insertions(+) diff --git a/ste

[tor-commits] [stem/master] Move `get_socket` to `_BaseControllerSocketMixin`

2020-07-15 Thread atagar
commit f238b5b4978fc968fcd31b205ab80272a12629b7 Author: Illia Volochii Date: Thu Apr 23 20:56:33 2020 +0300 Move `get_socket` to `_BaseControllerSocketMixin` --- stem/control.py | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stem/control.py b/ste

[tor-commits] [stem/master] Fix `_connect_auth`

2020-07-15 Thread atagar
commit 95d22a73d6f3b7c182ba50ec72697af536072e3b Author: Illia Volochii Date: Sun Apr 26 21:11:10 2020 +0300 Fix `_connect_auth` --- stem/connection.py | 41 - 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/stem/connection.py b/stem/co

[tor-commits] [stem/master] Start initializing the asynchronous controller in the dedicated thread

2020-07-15 Thread atagar
commit bc2c978a47e37b2f4a9b2ee581acec2e454fe0cd Author: Illia Volochii Date: Sun Apr 26 21:46:41 2020 +0300 Start initializing the asynchronous controller in the dedicated thread --- stem/control.py | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/stem/control.py

[tor-commits] [stem/master] Use a new event loop for wrapping the asynchronous controller

2020-07-15 Thread atagar
commit 9e08ea9068fd3176cb0c5c6c0aa4f845037e5478 Author: Illia Volochii Date: Sun Apr 26 21:45:03 2020 +0300 Use a new event loop for wrapping the asynchronous controller --- stem/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/control.py b/stem/control.p

[tor-commits] [stem/master] Fix unit tests

2020-07-15 Thread atagar
commit 1db0e6b84e870a5f228f3a770daca542bdef5d4e Author: Illia Volochii Date: Sun Apr 26 22:31:12 2020 +0300 Fix unit tests --- test/unit/connection/authentication.py | 36 +++-- test/unit/connection/connect.py| 19 +-- test/unit/control/controller.py| 254

[tor-commits] [stem/master] Fix tests

2020-07-15 Thread atagar
commit 28c9dde029f0a8ad0b69e209fac73a32735e1496 Author: Illia Volochii Date: Mon Apr 27 19:58:06 2020 +0300 Fix tests --- test/unit/connection/connect.py | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/test/unit/connection/connect.py b/t

[tor-commits] [stem/master] Rename the thread used for the asynchronous controller

2020-07-15 Thread atagar
commit 7e163eb1a0ef3ae2584bbdf2e48b6c677f705d9c Author: Illia Volochii Date: Sun Apr 26 21:45:56 2020 +0300 Rename the thread used for the asynchronous controller --- stem/control.py | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stem/control.py b/stem/control.py i

[tor-commits] [stem/master] Fix a problem with a mock object not recognized as a coroutine function

2020-07-15 Thread atagar
commit f90cb98741405f6a9d882238a89d9360665992c1 Author: Illia Volochii Date: Sun Apr 26 21:48:35 2020 +0300 Fix a problem with a mock object not recognized as a coroutine function --- stem/control.py | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stem/control.py

[tor-commits] [stem/master] Commit a missing file

2020-07-15 Thread atagar
commit dc6a98c30566184eb60cfccfca7fca5ca494869d Author: Illia Volochii Date: Mon Apr 27 19:18:24 2020 +0300 Commit a missing file --- test/unit/async_util.py| 26 ++ test/unit/connection/authentication.py | 2 +- test/unit/connection/connect.py

[tor-commits] [stem/master] Remove an old comment

2020-07-15 Thread atagar
commit 8df1419a4e4d2057fb896989df39c9e6db1226e9 Author: Illia Volochii Date: Thu Apr 30 19:26:16 2020 +0300 Remove an old comment --- stem/control.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index a87e88ca..98631428 100644 --- a/stem/control.py

[tor-commits] [stem/master] Fix message synchronization

2020-07-15 Thread atagar
commit 8d18e6bb83c02ecb1a98e4cafbde7113f4e55730 Author: Illia Volochii Date: Mon Apr 27 18:33:21 2020 +0300 Fix message synchronization --- stem/control.py | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control.py ind

[tor-commits] [stem/master] Make `Controller.attach_stream` asynchronous

2020-07-15 Thread atagar
commit 81f509ceecce78fa09488c1da52eb4480de25e66 Author: Illia Volochii Date: Tue Apr 21 22:23:09 2020 +0300 Make `Controller.attach_stream` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index e0248

[tor-commits] [stem/master] Optimize adding event listeners during controller initialization

2020-07-15 Thread atagar
commit 12e29a554b61076146a4d08d8ace620deaa4a513 Author: Illia Volochii Date: Thu Apr 23 23:16:19 2020 +0300 Optimize adding event listeners during controller initialization --- stem/control.py | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stem/control.py

[tor-commits] [stem/master] Make `Controller.remove_hidden_service` asynchronous

2020-07-15 Thread atagar
commit fab5e14bfaad34ec6eb4f675d2f0b2a40b8e6246 Author: Illia Volochii Date: Tue Apr 21 23:14:20 2020 +0300 Make `Controller.remove_hidden_service` asynchronous --- stem/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control.py i

[tor-commits] [stem/master] Move class methods out of `AsyncController` to reuse them

2020-07-15 Thread atagar
commit ced9564eed196988160d445b94c349c9f530cdbe Author: Illia Volochii Date: Thu Apr 23 20:33:07 2020 +0300 Move class methods out of `AsyncController` to reuse them --- stem/control.py | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/stem/co

[tor-commits] [stem/master] Make `Controller.get_effective_rate` asynchronous

2020-07-15 Thread atagar
commit f36db8793d671a3658155b146eb7374ee81cd770 Author: Illia Volochii Date: Tue Apr 21 22:17:36 2020 +0300 Make `Controller.get_effective_rate` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index

[tor-commits] [stem/master] Make `Controller.signal` asynchronous

2020-07-15 Thread atagar
commit da8fbf7079a4573b7061b336025acd3edc8f340c Author: Illia Volochii Date: Tue Apr 21 22:16:00 2020 +0300 Make `Controller.signal` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index f63df7bc..ee

[tor-commits] [stem/master] Make `load_conf` and `save_conf` of `Controller` asynchronous

2020-07-15 Thread atagar
commit 8e8814552a68cd9926363e4953f969144667448a Author: Illia Volochii Date: Tue Apr 21 22:40:45 2020 +0300 Make `load_conf` and `save_conf` of `Controller` asynchronous --- stem/control.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stem/control.py b/stem/c

[tor-commits] [stem/master] Make `Controller.create_hidden_service` asynchronous

2020-07-15 Thread atagar
commit 1c7d4ed79457b6d66f15c6ba7c20bf072f7ed5c2 Author: Illia Volochii Date: Tue Apr 21 23:14:02 2020 +0300 Make `Controller.create_hidden_service` asynchronous --- stem/control.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stem/control.py b/stem/control

[tor-commits] [stem/master] Rename `Controller` to `AsyncController`

2020-07-15 Thread atagar
commit 8ef1d67abae624c6219064af75c7203bc67231c2 Author: Illia Volochii Date: Thu Apr 23 20:18:28 2020 +0300 Rename `Controller` to `AsyncController` --- stem/control.py | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stem/control.py b/stem/control.py index

[tor-commits] [stem/master] Fix `AsyncController`

2020-07-15 Thread atagar
commit 8c875fd242436485e1ddf7e10489bb4753b2074a Author: Illia Volochii Date: Thu Apr 23 22:32:48 2020 +0300 Fix `AsyncController` --- stem/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/control.py b/stem/control.py index 7d0d517e..de8e24bb 100644 --- a/

[tor-commits] [stem/master] Move three methods out of `BaseController` to reuse them

2020-07-15 Thread atagar
commit 72614091b6891fc35056e55fb2a6733f54993978 Author: Illia Volochii Date: Thu Apr 23 20:22:43 2020 +0300 Move three methods out of `BaseController` to reuse them --- stem/control.py | 74 + 1 file changed, 38 insertions(+), 36 dele

[tor-commits] [stem/master] Remove a redundant blank line

2020-07-15 Thread atagar
commit f4be2a7807babaaaec8c320edc18c3073447d95b Author: Illia Volochii Date: Sun Apr 26 21:11:39 2020 +0300 Remove a redundant blank line --- stem/control.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stem/control.py b/stem/control.py index d055058e..db539539 100644 --- a/stem/cont

[tor-commits] [stem/master] Make `Controller.create_ephemeral_hidden_service` asynchronous

2020-07-15 Thread atagar
commit 83cfe4cf517e72d5ff28731da849462ac13d7b6a Author: Illia Volochii Date: Tue Apr 21 22:59:20 2020 +0300 Make `Controller.create_ephemeral_hidden_service` asynchronous --- stem/control.py | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stem/control

[tor-commits] [stem/master] Implement a basic version of a synchronous wrapper of the controller

2020-07-15 Thread atagar
commit 7ba32adba08b83c85f7ec9b76db144e960798b79 Author: Illia Volochii Date: Thu Apr 23 20:35:54 2020 +0300 Implement a basic version of a synchronous wrapper of the controller --- stem/control.py | 37 + 1 file changed, 37 insertions(+) diff --git a/st

[tor-commits] [stem/master] Await a coroutine

2020-07-15 Thread atagar
commit 7ec57569d9ad912b444942c89ec4b1c22a872398 Author: Illia Volochii Date: Thu Apr 23 20:20:30 2020 +0300 Await a coroutine --- stem/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/control.py b/stem/control.py index b7050626..b0535b08 100644 --- a/stem

[tor-commits] [stem/master] Make `Controller.list_ephemeral_hidden_services` asynchronous

2020-07-15 Thread atagar
commit c3411da131f40e1ab79c3f7b6ee5a45d06b444f6 Author: Illia Volochii Date: Tue Apr 21 22:58:07 2020 +0300 Make `Controller.list_ephemeral_hidden_services` asynchronous --- stem/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/con

[tor-commits] [stem/master] Make `Controller.close_circuit` asynchronous

2020-07-15 Thread atagar
commit 414c6771b7fe1550fdf4326f80446e66b0c9ebbe Author: Illia Volochii Date: Tue Apr 21 22:09:05 2020 +0300 Make `Controller.close_circuit` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index 99e74

[tor-commits] [stem/master] Make `Controller.get_streams` asynchronous

2020-07-15 Thread atagar
commit 79d07c69d41dacc503ff17bbc87fd5be66750431 Author: Illia Volochii Date: Tue Apr 21 22:10:52 2020 +0300 Make `Controller.get_streams` asynchronous --- stem/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control.py index 1d4ee

[tor-commits] [stem/master] Make `Controller.enable_feature` asynchronous

2020-07-15 Thread atagar
commit 0355c06962d9c807b6330d36eb363d6cfb5ba162 Author: Illia Volochii Date: Tue Apr 21 22:27:26 2020 +0300 Make `Controller.enable_feature` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index b364

[tor-commits] [stem/master] Make `Controller.drop_guards` asynchronous

2020-07-15 Thread atagar
commit 397a94f591dcb40a0545a0346d23e8d68eea2176 Author: Illia Volochii Date: Tue Apr 21 22:21:23 2020 +0300 Make `Controller.drop_guards` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index 66c8b56

[tor-commits] [stem/master] Make `Controller.remove_ephemeral_hidden_service` asynchronous

2020-07-15 Thread atagar
commit 211c726637f744b201a2871a61090dfaad6decc1 Author: Illia Volochii Date: Tue Apr 21 22:59:48 2020 +0300 Make `Controller.remove_ephemeral_hidden_service` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/cont

[tor-commits] [stem/master] Implement public methods of `BaseController` in the synchronous wrapper

2020-07-15 Thread atagar
commit 1e97d19d55f1ebd42dc04c442bb217141299a09d Author: Illia Volochii Date: Thu Apr 23 20:58:40 2020 +0300 Implement public methods of `BaseController` in the synchronous wrapper --- stem/control.py | 12 1 file changed, 12 insertions(+) diff --git a/stem/control.py b/stem/c

[tor-commits] [stem/master] Make `Controller.close_stream` asynchronous

2020-07-15 Thread atagar
commit 6e0e2f4559bf0ed1ca4ef649652f6e2749ca4221 Author: Illia Volochii Date: Tue Apr 21 22:23:35 2020 +0300 Make `Controller.close_stream` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index 8eaa8b

[tor-commits] [stem/master] Make `Controller.map_address` asynchronous

2020-07-15 Thread atagar
commit c7124d2727066f62c2dede31b4f36b391ec88fe7 Author: Illia Volochii Date: Tue Apr 21 22:20:52 2020 +0300 Make `Controller.map_address` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index 7cfd319

[tor-commits] [stem/master] Await a coroutine

2020-07-15 Thread atagar
commit 241083b3f05a04f46cdba96e40c8e990bd63e40f Author: Illia Volochii Date: Tue Apr 21 22:19:12 2020 +0300 Await a coroutine --- stem/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stem/control.py b/stem/control.py index 370b6270..7cfd3197 100644 --- a/stem

[tor-commits] [stem/master] Return the previous behavior of `_get_with_timeout`

2020-07-15 Thread atagar
commit 3431c5cba5ead275f359d2785cd5cc252e5b495d Author: Illia Volochii Date: Tue Apr 21 21:44:13 2020 +0300 Return the previous behavior of `_get_with_timeout` --- stem/control.py | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control

[tor-commits] [stem/master] Make `new_circuit` and `extend_circuit` of `Controller` asynchronous

2020-07-15 Thread atagar
commit e571b46ce0ca2ab76a40021e5eab65317ea041f5 Author: Illia Volochii Date: Tue Apr 21 22:05:03 2020 +0300 Make `new_circuit` and `extend_circuit` of `Controller` asynchronous --- stem/control.py | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/st

[tor-commits] [stem/master] Make `Controller.get_start_time` asynchronous

2020-07-15 Thread atagar
commit f3d173eaa364cbd2982f3713cf628bbf25881194 Author: Illia Volochii Date: Wed Apr 15 22:12:27 2020 +0300 Make `Controller.get_start_time` asynchronous --- stem/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control.py index 88

[tor-commits] [stem/master] Make `Controller.get_accounting_stats` asynchronous

2020-07-15 Thread atagar
commit d2c65fe459457fc038ec8a1281816abbacb2be9d Author: Illia Volochii Date: Wed Apr 15 22:05:32 2020 +0300 Make `Controller.get_accounting_stats` asynchronous --- stem/control.py | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/stem/control.py b/stem/cont

[tor-commits] [stem/master] Make `Controller.repurpose_circuit` asynchronous

2020-07-15 Thread atagar
commit 2ae55697420fe1ab4611c285b45f6a167505843a Author: Illia Volochii Date: Tue Apr 21 22:08:08 2020 +0300 Make `Controller.repurpose_circuit` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index e

[tor-commits] [stem/master] Make `Controller.is_set` asynchronous

2020-07-15 Thread atagar
commit bee112f44a4fc6a9f8f1f95b78aa621e1299038e Author: Illia Volochii Date: Mon Apr 20 22:07:17 2020 +0300 Make `Controller.is_set` asynchronous --- stem/control.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stem/control.py b/stem/control.py index fd388

[tor-commits] [stem/master] Add support for asynchronous event handlers

2020-07-15 Thread atagar
commit 933a7b30663c2ab41115c2796a58ea236633ead5 Author: Illia Volochii Date: Fri Apr 17 23:03:12 2020 +0300 Add support for asynchronous event handlers --- stem/control.py | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/stem/control.py b/stem/control.py inde

[tor-commits] [stem/master] Make `Controller.set_options` asynchronous

2020-07-15 Thread atagar
commit 4f63690766928018cec8b6dc0e3a4a9fe81dbd9d Author: Illia Volochii Date: Mon Apr 20 22:14:15 2020 +0300 Make `Controller.set_options` asynchronous --- stem/control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stem/control.py b/stem/control.py index 708a413

[tor-commits] [stem/master] Make `Controller.set_hidden_service_conf` asynchronous

2020-07-15 Thread atagar
commit 58b9817f8fbc6ae936dad7d2b106943533cd8b4a Author: Illia Volochii Date: Mon Apr 20 22:19:03 2020 +0300 Make `Controller.set_hidden_service_conf` asynchronous --- stem/control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stem/control.py b/stem/control.py

[tor-commits] [stem/master] Make `_get_with_timeout` asynchronous

2020-07-15 Thread atagar
commit e43c446d991611c421dbae68f7c46fb922589e0d Author: Illia Volochii Date: Fri Apr 17 23:06:52 2020 +0300 Make `_get_with_timeout` asynchronous --- stem/control.py | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/stem/control.py b/stem/control.py in

  1   2   >