Skip Menu |

This queue is for tickets about the IO-Async-SSL CPAN distribution.

Report information
The Basics
Id: 86867
Status: resolved
Priority: 0/
Queue: IO-Async-SSL

People
Owner: Nobody in particular
Requestors: TEAM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.10
Fixed in: 0.11



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.
Oops. Fixed. -- Paul Evans
Released in 0.11 -- Paul Evans