|
Boost : |
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/
-I/usr/local/openssl-1.1.0j/include -L/usr/local/openssl-1.1.0j/lib
-I/usr/local/boost_1_64_0/include
/usr/local/boost_1_64_0/lib/libboost_thread.a
/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.
Thank you.
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
> per
> > 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:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk