Subject: Re: [boost] [asio]https significantly reduce performance
From: lx (lxlenovostar_at_[hidden])
Date: 2019-01-31 06:24:51
I complie it by:
g++ -O3 -g -Wall -o https_server2 *.cpp -I/usr/local/include/
/usr/local/boost_1_64_0/lib/libboost_system.a -Wl,-Bstatic -lglog
-lunwind -Wl,-Bdynamic -lpthread -lcrypto -lssl -ldl -lrt
But it don't work.
David Stone via Boost <boost_at_[hidden]> äº2019å¹´1æ31æ¥å¨å ä¸å12:43åéï¼
> You are also compiling with optimizations turned off. Try adding -O3 to
> your command line when you test performance.
> On Wed, Jan 30, 2019 at 6:18 PM James E. King III via Boost <
> boost_at_[hidden]> wrote:
> > 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
> > connection instead of one per connection, that will solve your problem.
> > This is how web browsers avoid the same issue, for example.
> > - Jim
> > _______________________________________________
> > Unsubscribe & other changes:
> > http://lists.boost.org/mailman/listinfo.cgi/boost
> Unsubscribe & other changes: