Examples all now work on Windows out of the box, sometimes requiring an os.name check so non-windows still get the benefit of unix sockets. Sadly Python named-pipe support on Windows barely exists, and isn't incorporated into any of these web frameworks.
Pass gettimeout through the tunnel to the proxy socket.
Implements Iterable on Windows so aiohttp will walk the one-element list and get back a pure Python proxy object so that it can be weak referenced, which the Windows proactor event loops requires. Pyo3 generated objects like our tunnels don't support weak references until ABI 3.9, but we support 3.7+.
Sprucing up for Windows usage:
os.name
check so non-windows still get the benefit of unix sockets. Sadly Python named-pipe support on Windows barely exists, and isn't incorporated into any of these web frameworks.gettimeout
through the tunnel to the proxy socket.Iterable
on Windows soaiohttp
will walk the one-element list and get back a pure Python proxy object so that it can be weak referenced, which the Windowsproactor
event loops requires. Pyo3 generated objects like our tunnels don't support weak references until ABI 3.9, but we support 3.7+.