On Jul 16, 2008, at 2:06 AM, Daniel Stutz wrote:

Hi all,

I wonder if the condition for the sync() calls in LDAP::Extension is correct. It checks for the existence of $self->{Code}. Shouldn't that be $self->{resultCode} ?

Yes, it looks like it should.

In general, I am not sure, if calling sync() based on the existence of resultCode is correct when sending messages asynchronously.

Yes it is. Even if you are send async and call any method the needs the response then it will sync, that is how Net::LDAP is designed. If you do not ant to sync, then you need to call $mesg->done


When you send a request message you want to know if the encoding and sending has succeeded. You don't want to wait for the response message.

Right. Where are you seeing it wait when you do the send ?

Can you help me to understand the reason for the reuse of the request message object for holding the response message?

Again, where do you see it reusing the request message for holding the response ? There are no request message objects, per se. The process of sending a message generates an object of which the purpose is for gathering the response

Graham.

Reply via email to