AnyEvent::Handle->starttls

Robert Stone talby at trap.mtview.ca.us
Fri May 10 18:34:28 CEST 2013


Hi,

        I have been working on my first attempt to make a robust daemon
using AnyEvent.  In general I've had great luck with the software,
however AnyEvent::Handle's starttls method seems to introduce a heavy
cost to my application.

        The attached script sets up two ssl terminators on ports 24801
and 24802, both proxy to a local PostgreSQL server.  In benchmarking
tests, the handler on the lower port services clients about 5x the speed
of the second, but has a synchronous block during ssl negotiation.  They
don't seem to be doing dramatically different work to me.  

        Should I be surprised by this?  Could the starttls method have
an issue I could help isolate?  Is the second handler misusing AnyEvent
in some way?

                                                Thanks,
                                                Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pg_ssl.pl
Type: application/x-perl
Size: 2310 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20130510/10e89633/attachment.bin>


More information about the anyevent mailing list