MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / currentSession

Method currentSession

base/poco/NetSSL_OpenSSL/src/SecureSocketImpl.cpp:667–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665
666
667Session::Ptr SecureSocketImpl::currentSession()
668{
669 ScopedLock lock(*_mutex);
670 if (_pSSL)
671 {
672 SSL_SESSION* pSession = SSL_get1_session(_pSSL);
673 if (pSession)
674 {
675 if (_pSession && pSession == _pSession->sslSession())
676 {
677 SSL_SESSION_free(pSession);
678 return _pSession;
679 }
680 else return new Session(pSession);
681 }
682 }
683 return 0;
684}
685
686
687void SecureSocketImpl::useSession(Session::Ptr pSession)

Callers 1

connectMethod · 0.45

Calls 1

sslSessionMethod · 0.45

Tested by

no test coverage detected