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

Attachment: pg_ssl.pl
Description: Perl program

_______________________________________________
anyevent mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/anyevent

Reply via email to