Frontend: cpaint.set_persistent_connection()
cpaint Method Summary
void set_debug()
      void set_proxy_url()
      void set_transfer_mode()
      void set_async()
      void set_response_type()
      void set_persistent_connection()
      void set_use_cpaint_api()
      void set_auth_user()
      void set_auth_pass()
      void call()
cpaint Property Summary
void set_persistent_connection ( boolean persistance )
Defines whether or not to use a persistent connection.
Class
Parameters
» boolean persistancewhether or not a single persistent connection is to be used
Return Value
» void
API Tags
» Access: public
Default Value
» false
Description
When set to true, a single persistent connection object will be used by CPAINT.
    
    With a persistent connection in use, CPAINT will drop all issued requests until the last response has returned. Yes, you will loose request / response pairs if a request is being issued before the preceding one has returned.
The benefit of a persistent connection is to save bandwidth and memory. A persistent connection is most useful if one and the same request is performed in regular intervals so it is unimportant whether or not a single update is dropped.




