On Wed, 16 Aug 2006, [EMAIL PROTECTED] wrote:

> I am using opensrs-PHP, so I am implementing the api with the use of the 
> openSRS_base class. When I search through the API manual I am unable to find 
> anything pertaining to closing a connection/killing a connection/logging out. 
> You are right about the sleep by the way. One thing I should mention is that 
> my php function actually contacts Opensrs 3 times in order to get the domain 
> info-
> 1.I set the cookie
> 2.Take that cookie and retrieve the domain info
> 3.Delete the cookie.
>
> Based upon the manual after 100 commands (I get the following error after 33 
> calls to my function) are completed you must re-authenticate:
> "Number of command per connection exceeded limit. Client must re-authenticate 
> with server."

Right. 3 commans per call, 99 commands, and it breaks in the middle of the
next. Makes sense.

> So now my question is how do I disconnect/re-authenticate/kill the
> connection via the API?

Sounds like object oriented code.

It is probably safe to destroy the current instance by replacing it with
a new one.

It might be simpler to do this every 5 to 10 passes.

Frankly, I'm surprised that the opensrs class code doesn't re-connect
automatically for you.

Hmm. Isn't there a bulk-mode interface somewhere? Shouldn't this be done
through that? anyone?

> I appreciate everyones help
>
> -Sammy
> _______________________________________________
> domains-dev mailing list
> domains-dev@discuss.tucows.com
> http://discuss.tucows.com/mailman/listinfo/domains-dev
>

----------------------------------------------------------------------
 Tim Woodcock                                   [EMAIL PROTECTED]
 BareMetal.com                                  http://baremetal.com/
 Dev Team
----------------------------------------------------------------------

_______________________________________________
domains-dev mailing list
domains-dev@discuss.tucows.com
http://discuss.tucows.com/mailman/listinfo/domains-dev

Reply via email to