|
Boost : |
Subject: Re: [boost] [asio]https significantly reduce performance
From: James E. King III (jking_at_[hidden])
Date: 2019-01-31 01:18:28
On Wed, Jan 30, 2019 at 8:13 PM lx via Boost <boost_at_[hidden]> wrote:
> 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.
>
>
What you are reporting is normal. The overhead of establishing a SSL/TLS
connection is very high. Change your client to send multiple requests per
connection instead of one per connection, that will solve your problem.
This is how web browsers avoid the same issue, for example.
- Jim
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk