Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 cURL_multi 非常适合同时连接,但什么可以限制连接数?我问是因为当做超过 500 个时,其中一些似乎随机无法连接。我正在执行超时为 5 的 HEAD 请求,将超时增加到 10 似乎没有帮助。有任何想法吗?
500个并发连接?这要求很多,服务器可能拒绝为您服务。
尝试设置一个更合理的限制,在 4-12 个并发连接之间。