Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the limits of PHP's multi curl functions?

Tags:

php

curl

Is there any limits in the max amounts of concurrent connections a multi curl session make?

I am using it to process batches of calls that I need to make to a API service, I just want to be careful that this does not effect the rest of my app.

A few queries, do curl sessions take up the amount of connections the apache server can serve? Is multi curl a ram or CPU hungry operation? I'm nit concerned about bandwidth because I have lots of it, a mighty fast host and only small amounts of data is being sent and received per request.

And I imagine it depends on server hardware / config...

But I can't seem to find what limits the amount of curl sessions on the documentation.

like image 445
cappuccino Avatar asked Jun 24 '10 17:06

cappuccino


1 Answers

PHP doesn't impose any limitations on the number of concurrent curl requests you can make. You might hit the maximum execution time or the memory limit though. It's also possible that your host limits the amount of concurrent connections you're allowed to make.

like image 186
Daniel Egeberg Avatar answered Oct 30 '22 19:10

Daniel Egeberg