Project

General

Profile

« Previous | Next » 

Revision c1147f7f

Added by rhenium (Kazuki Yamaguchi) about 4 years ago

[ruby/openssl] ssl: avoid directly storing String object in NPN callback

On the server side, the serialized list of protocols is stored in
SSL_CTX as a String object reference. We utilize a hidden instance
variable to prevent it from being GC'ed, but this is not enough because
it can also be relocated by GC.compact.

https://github.com/ruby/openssl/commit/5eb68ba778