Perlbal - non-blocking SSL update

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > September 2006 > non-blocking SSL update





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author non-blocking SSL update
Brad Fitzpatrick

2006-09-16, 1:13 pm

Several people have been polling me, both on-list and off-, about the
state of non-blocking SSL in Perlbal.

The previous update was: Perlbal just uses IO::Socket::SSL which was a
few line hack, but which blocked during connect. It was more for dev than
production. I then said I planned to extract DJabberd's
Danga::Socket-based SSL which was fully non-blocking.

The new update is I wrote a POP3 server which does SSL/StartTLS, etc, and
I did extract djabberd's SSL into a Danga::Socket::SSL subclass, which can
turn SSL on at any point, or act as a normal socket.

So now it's pretty easy to make Perlbal::Socket subclass
Danga::Socket::SSL instead of Danga::Socket, then we get good SSL.

The debate now is dependencies:

-- make Perlbal require Danga::Socket::SSL? that's one more,
plus Danga::Socket::SSL requires Net::SSLeay, etc.

-- optional dependency? but then I guess we have to change
the class inheritance (@ISA) at runtime. but hell, it's Perl,
why not? Any interactions w/ fields.pm? Maybe.

I haven't looked into these issues yet.

Danga::Socket::SSL might need some cleanup yet, too.

Any takers?

- Brad


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com