Subject: | on_accepted should be on_accept in pod |
Minor typo in pod ('on_accepted' instead of the 'on_accept' the code is looking for), patch attached.
cheers,
Tom
Subject: | io-async-ssl-on_accepted.patch |
=== modified file 'lib/IO/Async/SSL.pm'
--- lib/IO/Async/SSL.pm 2013-05-19 20:14:36 +0000
+++ lib/IO/Async/SSL.pm 2013-07-11 22:59:22 +0000
@@ -279,7 +279,7 @@
This method sets up a listening socket using the addresses given, and will
invoke the callback each time a new connection is accepted on the socket and
-the SSL handshake has been completed. This can be either the C<on_accepted> or
+the SSL handshake has been completed. This can be either the C<on_accept> or
C<on_stream> continuation; C<on_socket> is not supported.
It takes all the same arguments as C<IO::Async::Loop::listen()>. Any argument
@@ -301,7 +301,7 @@
The underlying L<IO::Socket::SSL> socket will also require the server key and
certificate for a server-mode socket. See its documentation for more details.
-If the C<on_accepted> continuation is used, the socket handle it yields will
+If the C<on_accept> continuation is used, the socket handle it yields will
be a C<IO::Socket::SSL>, which must be wrapped in C<IO::Async::SSLStream> to
be used by C<IO::Async>. The C<on_stream> continuation will already yield such
an instance.