develooper Front page | perl.ldap | Postings from July 2008

Questions to sync() and resultCode/Code

Thread Next
From:
Daniel Stutz
Date:
July 16, 2008 02:06
Subject:
Questions to sync() and resultCode/Code
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} ?

In general, I am not sure, if calling sync() based on the existence of 
resultCode is correct when sending messages asynchronously. 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.
Can you help me to understand the reason for the reuse of the request 
message object for holding the response message?

Thank you.

Kind regards,
Daniel

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About