Subject: | ssl issues |
From the docs: "As $tls_ctx you can pass anything that you can pass as "tls_ctx" to an AnyEvent::Handle object".
This is not true. According to the AnyEvent::Handle docs: "If this parameter is missing (or "undef"), then AnyEvent::Handle will use "AnyEvent::Handle::TLS_CTX".
But the source for AnyEvent::HTTPD::HTTPConnection will not use the ssl parameter unless it is a true value:
($self->{ssl}
? (tls => "accept", tls_ctx => $self->{ssl})
: ()),
And when I use (ssl => AnyEvent::TLS->new), all requests result in connection errors. The distribution doesn't have any tests for ssl, so I can't even tell if this ever worked properly.