Sync_close in ruby ​​openssl library

I was wondering what kind of attribute sync_closein OpenSSL :: SSL :: SSLSocket . He says that it is not documented in rdoc. I see this in many pieces of code, but I do not see its use. What is this for?

+5
source share
1 answer

First you open the socket, i.e. tcp, then you create an SSL layer. sync_close does this so that both the source socket and the encrypted layer are closed together.

+7
source

All Articles