Subject: | SSL support |
SSL sockets require that the sockets be tied once (at creation) and left
alone from that point forward. We can't retie a socket for every reused
request, for instance, so it's up to Client::Keepalive to do that.
So. Migrate POE::Component::Client::HTTP::SSL code here, or use
POE::Component::SSLify instead. At any rate, the transformation must
happen immediately after the connection is established.
A nice, data driven way to manage this will be a hash of schemas that
require SSL at connection time. Any sockets of those schemas will be
SSLified at connect time, and their tidily SSLified sockets will be
managed thereafter. Wheela!