Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The current implementation of call restful api is using a local libcurl handle, which means every time there is restful call, this handle will be initialized and user, after the restful call, this handle is finalized.
Establishing the call consumes more time, we can reduce this by keep the libcurl as a long-live connection.
A better way is to make this libcurl context as a global structure. Just initialize it once before QD calls restful api, and finalize it before QD exits.