aiosocks
aiosocks copied to clipboard
SOCKS proxy client for asyncio
- `aiohttp` = 3.6.2 - `aiosocks` = 0.2.6 ``` Traceback (most recent call last): File "/Users/joey.orlando/.pyenv/versions/standout_specialties_data_scraping-3.7.0/lib/python3.7/site-packages/aiosocks/connector.py", line 4, in from aiohttp.client_exceptions import certificate_errors, ssl_errors ImportError: cannot import name 'certificate_errors' from...
Instead, `aiosocks.SocksError` is raised saying there was an auth error. AFAICS, this happens because in `aiosocks.protocols.BaseSocksProtocol.negotiate`, on line 58, exception `aiosocks.SocksError` is caught, which is a parent of `aiosocks.LoginAuthenticationFailed` and...
`create_connection` with sock only raises error ` create_connection() missing 1 required positional argument: 'proxy'`. With proxy as None: `proxy must be Socks4Addr() or Socks5Addr() tuple` With both sock and proxy:...
If I put in a loop a function which creates a Thread which connects to proxy (one proxie at each iteration) and disconnects immediately, sometimes I get errors like this:...
I've noticed that the first request always takes much more time when compared to the later requests of the same session. Below is the code to reproduce this behaviour: ```...
As of version 3.7, [`asyncio.create_connection()`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.create_connection) has a `ssl_handshake_timeout` kwarg. This kwarg should be supported by `aiosocks.create_connection()` and passed through.
aiohttp 2.3 introduced explicit support for `ssl.*Error` As well in upcoming 2.3.2 (bugfix release) will be private api changes for Connectors https://github.com/aio-libs/aiohttp/pull/2446 It guess aiosocks integration will be broken @nibrag...