• Tatsuhiro Tsujikawa's avatar
    nghttpx: Add --tls-ctx-per-worker option · 1e4f8f27
    Tatsuhiro Tsujikawa authored
    When same SSL_CTX is used by multiple thread simultaneously we have to
    setup some number of mutex locks for it.  We could not check how this
    locking affects scalability since we have 4 cores at best in our
    development machine.  Good side of sharing SSL_CTX across threads is
    we can share session ID pool.
    
    If --tls-ctx-per-worker is enabled, SSL_CTX is created per thread
    basis and we can eliminate mutex locks.  The downside is session ID is
    no longer shared, which means if session ID generated by one thread
    cannot be acceptable by another thread.  But we have now session
    ticket enabled and its keys are shared by all threads.
    1e4f8f27
shrpx_ssl.h 6.34 KB