Re: slowness of _ssl.sslwrap() on first call

2014-04-29 Thread summer
Thanks for the reply. What I found is that it's always slow first time running from a particular application, but not other applications, no matter which applications I run first. -- View this message in context: http://openssl.6102.n7.nabble.com/slowness-of-ssl-sslwrap-on-first-call-tp49700p49

Re: slowness of _ssl.sslwrap() on first call

2014-04-27 Thread summer
Furthur investigation shows the slowness is happening at _ssl.c line 306, self->ctx = SSL_CTX_new(SSLv23_method()); /* Set up context */ Is this line code involving client/server communication yet? -- View this message in context: http://openssl.6102.n7.nabble.com/slowness-of-ssl-sslwrap-on-

slowness of _ssl.sslwrap() on first call

2014-04-27 Thread summer
I am debugging a problem where opening a ssl connection from application A is very slow the first time (30 secs), but it's very fast in subsequent calls. In addition, in another application B, the same ssl connection is fast even for the first time. The profiler shows the slowness is caused by _ssl