miyagawa/Starman — pull request #77 by ap (2013-07-20 20:01:10+00:00)
Title: IO::Socket::SSL-based SSL support, based on overhauled ::Proto::SSL in Net::Server 2.0 series

The [previous](/miyagawa/Starman/pull/35) [patches](/miyagawa/Starman/pull/45) [all](/miyagawa/Starman/pull/47) used ::Proto::SSLEAY because ::Proto::SSL was discouraged in Net::Server 0.9 series due to limitations in using IO::Socket::SSL. In 2.0 series those limitations were lifted. And the Net::SSLeay wrapping in IO::Socket::SSL seems more mature than that in Net::Server::Proto::SSLEAY.

So unlike ::Proto::SSLEAY, using ::Proto::SSL as a drop-in replacement for ::Proto::TCP seems to Just Work. I did some light testing using this patch and did not spot issues.

But please put it through its paces.

This patch also takes advantage of improved Net::Server 2.0 config interface (allows passing an array of hashes for the `port` key) to make the command line parsing code much nicer to skim.

Cc @og01 @und3f @alladdin @exodist @dpetrov