Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8759299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:46:04+00:00 2026-06-13T14:46:04+00:00

I am working on an API mashup in PHP of various popular APIs and

  • 0

I am working on an API mashup in PHP of various popular APIs and would liek to implement rate limiting to ensure i am playing nice.

I did some research and have taken a look at CURLOPT_MAXCONNECTS and CURLOPT_TIMEOUT but I have some confusion about how they function.

As I understand it, likely incorrectly:

CURLOPT_MAXCONNECTS
---
  Each script that calls a cUrl request opens a connection.  
  When the MAXCONNECTS limit is reached, then the server delays the request.

CURLOPT_TIMEOUT
---
  The amount of time that the server will wait to make a connection.  
  Working with MAXCONNECTS, does that mean that cUrl will make the listed 
  number of connections and then wait up to TIMEOUT for an open thread?

So– I am, obviously, very confused about how cUrl actually functions with these parameters. The application I am developing needs to limit cUrl requests at different limits for each API I am calling. As I understand things, the cUrl options are server wide? Is there some method of attaching a token to a specific cUrl call and applying the limit per API that way? Do I need to work some global/shared memory magic?

Your truly and considerably confused,
Samantha.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:46:05+00:00Added an answer on June 13, 2026 at 2:46 pm

    CURLOPT_MAXCONNECTS is just the maximum number of simultaneous requests.
    CURLOPT_TIMEOUT is the time cURL will wait before abording request in the case that there is no answer.

    You’ll have to work you limits manually

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with Youtube API and PHP library: http://code.google.com/apis/youtube/2.0/developers_guide_php.html I'm modifying existing app: http://googlecodesamples.com/youtube/php/YouTubeVideoApp/index.php
Working on a movie website and would love to find an API that I
I've been trying to get Google's Calendar API working in a PHP web application,
So, I'm new to working with API's and PHP, so bear with me. I'm
I'm try to implement a user search on top of my working Smack-API based
I'm working on an API that sends HTML forms to external AJAX apps. Would
I am working with foursquare API in android app and PHP and I am
I am working with api in php/ajax and i have in every page included
I'm trying to get the google maps for websites API working on my php
Working with Paypal API is the worst experience so far for me as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.