D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
puma-3.8.2
/
lib
/
puma
/
Filename :
accept_nonblock.rb
back
Copy
require 'openssl' module OpenSSL module SSL class SSLServer unless public_method_defined? :accept_nonblock def accept_nonblock sock = @svr.accept_nonblock begin ssl = OpenSSL::SSL::SSLSocket.new(sock, @ctx) ssl.sync_close = true ssl.accept if @start_immediately ssl rescue SSLError => ex sock.close raise ex end end end end end end