Johnny Wong
Johnny Wong

Reputation: 975

Will PHP's CURL ever reuse connection for curl requests of different handles?

I googled quite a lot, even CURL's official FAQ, but cannot find explicit answer.

Remark: related to question Reusing the same curl handle. Big performance increase?, but the accepted answer didn't answer it explicitly, and no official reference.

Upvotes: 1

Views: 1590

Answers (1)

blubear
blubear

Reputation: 441

Maybe this would answer your question:

curl.haxx.se/docs/faq.html#What_about_Keep_Alive_or_persist

curl and libcurl have excellent support for persistent connections when
transferring several files from the same server. Curl will attempt to reuse
connections for all URLs specified on the same command line/config file, and 
libcurl will reuse connections for all transfers that are made using the same 
libcurl handle.

Upvotes: 1

Related Questions