celluloid / celluloid-io

UNMAINTAINED: See celluloid/celluloid#779 - Evented sockets for Celluloid actors
https://celluloid.io
MIT License
879 stars 93 forks source link

add ssl accept support #40

Closed codekitchen closed 11 years ago

codekitchen commented 11 years ago

Adds an #accept method to SSLSocket, upgrading the already-accepted TCP socket to an SSL connection. This is the same API as OpenSSL::SSL::SSLSocket

Also adds a convenience Celluloid::IO::SSLServer class, with the same API as the OpenSSL::SSL::SSLServer class, which wraps a TCPServer and automatically upgrades accepted sockets to SSL before returning them.

codekitchen commented 11 years ago

Hmm that travis.ci failure on rbx appears to be unrelated to this change, I don't see a way to retrigger the build though

tarcieri commented 11 years ago

Not sure how to trigger a rebuild for a PR. That said, this looks awesome and it's passing on MRI and JRuby, so I'll go ahead and call it good and merge it. I'm guessing the rbx thing is a fluke