node-libcurl icon indicating copy to clipboard operation
node-libcurl copied to clipboard

single connection

Open insidexoff opened this issue 3 years ago • 2 comments

How to use single connection in this library. so you have to wait for the previous http connection request to finish before executing the new connection.

I put node-libcurl in loop however this node-libcurl does concurrent http connection requests. i want a single connection how to do it.

insidexoff avatar May 24 '22 15:05 insidexoff

I used this curl option to solve this problem. This doesn't seem like a good solution

NOPROGRESS: 1,
DNS_CACHE_TIMEOUT: 120,
MAXREDIRS: 20,
NOSIGNAL: 1,

FOLLOWLOCATION: true,
HTTPHEADER: datarow.headers,
SSL_VERIFYPEER: false,
SSL_VERIFYHOST: false,
CUSTOMREQUEST: datarow.method,
VERBOSE: true,

insidexoff avatar May 25 '22 09:05 insidexoff

@insidexoff mind sharing some code of what you want to accomplish?

JCMais avatar Jun 14 '22 01:06 JCMais