Pass SSL Context to HTTP Connection#455
Conversation
|
Okay, so there's a big jump here from "It seems with this version, the SSL context stopped being passed to the HTTP connection." ... to ... "Raising OSError: [Errno 24] Too many open files when sending over 500 async requests simultaneously." Can you walk me through how you're getting an error, what the full traceback is, and what makes you think that this code change will resolve it? This doesn't look correct to me, as it's passing the ssl context to the proxy connection, when actually it needs to be used when establishing the SSL tunnel. (So the ssl context is being between the client and the end server, rather than between the client and the proxy.) |
|
If you go to the class You will get this error: With my changes the issue disappears. |
|
Okay - I've taken an alternative tack on this. The issue here is really that we're currently creating a bunch of SSLContext instances when we really don't need to. Passing an ssl_context argument to the proxy connection does also suppress this, but it's misleading, because it's not actually used. So instead I've changed things around so we only create instances at the point they're used. |
It seems with this version, the SSL context stopped being passed to the HTTP connection. Raising
OSError: [Errno 24] Too many open fileswhen sending over 500 async requests simultaneously.