I'm having trouble figuring out what might be the cause of this latency ( minutes to create a connection ). The strange thing is that it does eventually succeed:
This is an HTTPS connection with a client certificate. I think I can see hackney making calls to ssl and public_key but I can't tell for sure beyond that.
Is it possible something in the SSL handshake takes so long? Or something with the OS sockets?
Once the pool has a connection, it is reused subsequently and is very fast.
I'm having trouble figuring out what might be the cause of this latency ( minutes to create a connection ). The strange thing is that it does eventually succeed:
https://github.com/benoitc/hackney/blob/v1.17.0/src/hackney_pool.erl#L101-L107
This is an HTTPS connection with a client certificate. I think I can see hackney making calls to
ssl
andpublic_key
but I can't tell for sure beyond that.Is it possible something in the SSL handshake takes so long? Or something with the OS sockets?
Once the pool has a connection, it is reused subsequently and is very fast.