On Jul 16, 2008, at 1:08 AM, Daniel Stutz wrote:

Hi all,

Message::decode calls LDAP::_forgetmesg
as far as I understand the architecture of Net::LDAP this should not be done for IntermediateResponse messages. Is that correct?

Yes, forget message is a cleanup process that should not be called until all communication has been completed for that request.

Graham.



Thank you.

Kind regards,
Daniel

--- Message.pm.orig     2008-07-16 10:01:18.000000000 +0200
+++ Message.pm  2008-07-16 10:02:01.000000000 +0200
@@ -143,7 +143,9 @@

# tell our LDAP client to forget us as this message has now completed
  # all communications with the server
-  $self->parent->_forgetmesg($self);
+  unless( $result->{protocolOp}{intermediateResponse} ){
+    $self->parent->_forgetmesg($self);
+  }

  $self->{callback}->($self)
    if (defined $self->{callback});


Reply via email to