Releasing 0.84

Michael Scherer misc at mandriva.org
Wed Jul 30 12:25:13 UTC 2008


Le mardi 29 juillet 2008 à 21:43 +0100, Martin Atkins a écrit :
> Bron Gondwana wrote:
> > So anyway - it's been a while:
> > 
> > http://search.cpan.org/~bradfitz/DJabberd-0.83/ - 08 May 2007
> > 
> > And there are quite a few bugfixes in the tree.
> > 
> > I propose releasing a 0.84 with what's in there now.  If nothing
> > else it will make the project look alive!
> > 
> 
> Is anyone running on the latest trunk and can vouch for its stability?
> 
> I don't have it running on any real scale, so I don't really feel my 
> usage tests it adequately enough for me to be confident in it.

I run it too, and do not more problem than with regular release.

However, I have a slightly modifed version too, I have added some patchs
that I didn't send yet as I am still testing them, and this one may be
quite important :

diff --git a/lib/DJabberd/Connection/ClientIn.pm
b/lib/DJabberd/Connection/ClientIn.pm
index 3942977..3c2d830 100644
--- a/lib/DJabberd/Connection/ClientIn.pm
+++ b/lib/DJabberd/Connection/ClientIn.pm
@@ -143,6 +143,13 @@ sub close {
 
         my $unavail = DJabberd::Presence->unavailable_stanza;
         $unavail->broadcast_from($self);
+
+        foreach my $directed (keys %{$self->{directed_presence}}) {
+            my $dpres = $unavail->clone;
+            $dpres->set_from($self->bound_jid);
+            $dpres->set_to($directed);
+            $dpres->procdeliver($self->vhost);
+        }
     }
 
     if (my $jid = $self->bound_jid) {


If you disconnect quite unexpectedly, you will not appear as
disconnected on muc room.

-- 
Michael



More information about the Djabberd mailing list