PHP的多curl函数的限制是什么? [英] What are the limits of PHP's multi curl functions?

查看:140
本文介绍了PHP的多curl函数的限制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

多卷曲会话在并发连接的最大数量上是否有限制?

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

我使用它来处理我需要进行的批次调用一个API服务,我只是想小心,这不影响我的应用程序的其余部分。

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.

一些查询,curl会话占用的连接数量apache服务器可以服务?是多卷曲一个ram还是CPU饿了?我很关心带宽,因为我有很多,一个强大的快速主机,只有少量的数据被发送和接收每个请求。

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...

但我似乎找不到什么限制curl会话的文件量。

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

推荐答案

PHP不会对可以发出的并发curl请求数施加任何限制。您可能会达到最大执行时间或内存限制。您的主机也可能会限制您允许的并发连接数量。

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.

这篇关于PHP的多curl函数的限制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆