Skip to content
On this page

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class · Ruby 4.1

OpenSSL::SSL::SSLServer

< Object include OpenSSL::SSL::SocketForwarder 5 instance methods 1 class methods

SSLServer represents a TCP/IP server socket with Secure Sockets Layer.

Deprecated. Use TCPServer or Socket to accept a TCP connection, and then wrap it with OpenSSL::SSL::SSLSocket. See also OpenSSL::SSL::SSLSocket#accept.

Class methods 1

Instance methods 5

Attributes
Read & Write

When set to true, accept will immediately perform the SSL/TLS handshake after accepting a TCP connection. Defaults to true.

NOTE: accept performs the SSL/TLS handshake synchronously. A slow client can therefore prevent the server from accepting new connections indefinitely. For this reason, SSLServer is deprecated.