websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

SSL connection (wss://) speed

Open maggnetz opened this issue 11 years ago • 6 comments

i started using this library,got a very good results but when moved to SSL connections started to get very slow response. (Im using well sign SSL from a real CA) for example (doing ping->echoserver->ping result) times: (All is same server,same location,same SSL cert)

iis ws - 17ms iis wss - 18ms node ws - 17ms node wss - 18ms-19ms websocketpp ws - 17ms-18ms websocketpp wss - 80ms-90ms

any ideas??

maggnetz avatar Feb 22 '15 09:02 maggnetz

Did you measire full circle (SSL handshake + ping), or subsequent ping only?

amdei avatar Apr 16 '15 17:04 amdei

full circle -> i open socket -> send a message "hello" -> server answer "you too" -> and time stamp for it (Echo server)

On Thu, Apr 16, 2015 at 8:39 PM, amdei [email protected] wrote:

Did you measire full circle (SSL handshake + ping), or subsequent ping only?

— Reply to this email directly or view it on GitHub https://github.com/zaphoyd/websocketpp/issues/405#issuecomment-93793455.

maggnetz avatar Apr 16 '15 20:04 maggnetz

What client system, compiller, boost & OpenSSL versions do you use?

First thing - I would distinguish delays in SSL connection establishing and delays in actual data transfer. Do you able to repeat your test with measuring these two operation times separatelly?

amdei avatar Apr 17 '15 02:04 amdei

Server 2012 , VS 2103 SP3,boost the latested. I didn't invest time on find the where it's happening.

but same conditions , http works fine. same condition's https Node server works great (Currently i'm already in production with node)

On Fri, Apr 17, 2015 at 5:26 AM, amdei [email protected] wrote:

What client system, compiller, boost & OpenSSL versions do you use?

First thing - I would distinguish delays in SSL connection establishing and delays in actual data transfer. Do you able to repeat your test with measuring these two operation times separatelly?

— Reply to this email directly or view it on GitHub https://github.com/zaphoyd/websocketpp/issues/405#issuecomment-93880320.

maggnetz avatar Apr 17 '15 02:04 maggnetz

This is almost certainly a duplicate of #626. There is more discussion and context there about what is happening.

zaphoyd avatar Jun 30 '20 10:06 zaphoyd

This is almost certainly a duplicate of #626. There is more discussion and context there about what is happening.

@zaphoyd has this issue been resolved? any recommendation to get around it?

newpoo avatar May 14 '23 05:05 newpoo