• Kenny Root's avatar
    OpenSSLSocketImpl: Move state checks inside mutex · 4b050b6f
    Kenny Root authored
    Checking the state of the connection is unreliable if SSL_read and
    SSL_write are happening in another thread. Move the state checks inside
    our application mutex so we don't run into another thread mutating the
    state at the same time.
    
    Bug: 15606096
    
    (cherry picked from commit 0931d51c)
    
    Change-Id: I151ecbc57278374007a56827a65295b4c9476732
    4b050b6f
org_conscrypt_NativeCrypto.cpp 343 KB