Class: OpenSSL::SSL::SSLServer
- Inherits:
-
Object
- Object
- OpenSSL::SSL::SSLServer
- Defined in:
- lib/bettercap/monkey/openssl/server.rb
Instance Method Summary collapse
Instance Method Details
#accept_nonblock ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bettercap/monkey/openssl/server.rb', line 19 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 |