Class: OpenSSL::SSL::SSLServer
- Inherits:
-
Object
- Object
- OpenSSL::SSL::SSLServer
- Defined in:
- lib/puma/accept_nonblock.rb
Instance Method Summary collapse
Instance Method Details
#accept_nonblock ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/puma/accept_nonblock.rb', line 7 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 |