Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sync_close in ruby's openssl library

Tags:

ruby

ssl

openssl

I was wondering what the attribute sync_close in OpenSSL::SSL::SSLSocket is for. It says it's not documented in rdoc. I can see it in a lot of code snippets, but I can't see it's usage. What is it for?

like image 664
user857990 Avatar asked Feb 22 '13 15:02

user857990


1 Answers

First you open a socket, ie tcp, then you create the SSL layer. sync_close makes it so that both the original socket and the encrypted layer are closed together.

like image 79
Jon Ramvi Avatar answered Sep 28 '22 03:09

Jon Ramvi