Many devices connection #763
-
Hello! I have a custom framework to connect to about 200 routers, send some commends and send result to the screen. It is based on the asyncssh library. It worked like a charm, until to update cryptography library. To the version 41.0.7 it works fast, no issues. But after update no matter which higher version, there are many timeouts while connecting to devices. Random device get timeouts while trying to log in through ssh by key. I found the problem is cryptography library like I mentioned. Do you have any idea, what is wrong? I mean, why is that and is it possible to have some workaround? I tried with semaphore, but I had to limit it to 30 devices at the time, so it works but very slow. My expectation is to have a same fast version script but with cryptography update. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This sounds very similar to #760. See also pyca/cryptography#13147. You might want to try upgrading to OpenSSL 3 and see if that helps. However, you may need to build cryptography from source to do that, as I think most versions of it these days embed the version of OpenSSL they are using. I'm still not sure what the root cause of the problem is. |
Beta Was this translation helpful? Give feedback.
This sounds very similar to #760. See also pyca/cryptography#13147. You might want to try upgrading to OpenSSL 3 and see if that helps. However, you may need to build cryptography from source to do that, as I think most versions of it these days embed the version of OpenSSL they are using.
I'm still not sure what the root cause of the problem is.