Patch: Selector Additions

Matt Mankins matt at loremipsumbooks.com
Sat Dec 16 15:53:11 UTC 2006


Hi.

We were having an issue where we wanted to use a selector with a  
service whose role was not one of "web_server" or "reverse_proxy".   
Attached is the patch (against 1.47) we use to let this happen,  
rather than giving a 500 server error.

Now in the load() of your Plugin:

  Perlbal::Service::add_role(
							'xmpp_binder',
			                                
\&Perlbal::Plugin::XMPP_Binder::Client::new,
->			                                
\&Perlbal::Plugin::XMPP_Binder::Client::new_from_base
						);

Let us know if there was a better way to do this and we'll do it that  
way.

Best,
Matt Mankins
Lorem Ipsum Books
http://www.SaveTheBookstoreSaveTheWorld.com/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: selector.patch
Type: application/octet-stream
Size: 1787 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/perlbal/attachments/20061216/b1559b04/selector.obj
-------------- next part --------------



More information about the perlbal mailing list