
1.The client don't keep alive, and start a new connection each time. 2.I get openssl-1.1.0j from https://www.openssl.org/source/openssl-1.1.0j.tar.gz 3.we can improve some performance ? Or let Nginx turn HTTP/S to HTTP, and asio just handle HTTP ? Thank you. Vinnie Falco <vinnie.falco@gmail.com> 于2019年1月31日周四 上午12:58写道:
On Tue, Jan 29, 2019 at 7:27 PM lx via Boost <boost@lists.boost.org> wrote:
https significantly reduce performance.
Well, yes, the connection is encrypted by a block cipher - what did you expect? Are you disconnecting and reconnecting for every request or are you keeping the connection alive? The SSL opening handshake is very expensive. Are you using a debug or optimized OpenSSL library?
It is normal that SSL connections are going to be significantly slower than plain connections. On a related note, Google wants the world to switch to HTTP/S and disallow HTTP.
Regards