Feature Requests item #3151789, was opened at 2011-01-05 13:09
Message generated for change (Settings changed) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=3151789&group_id=976
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
>Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Johan van Selst (koresh)
Assigned to: Daniel Stenberg (bagder)
Summary: [patch] Ignore certain IPs in connections
Initial Comment:
The attached patch adds an option to blacklist certain IP addresses for a specific connection. I use this in an environment with many DNS load-balanced webservers. Sometimes one of these servers consistently throws errors (e.g. HTTP 500 Internal error), while others work fine. Curl already does automatic fail-over to another address if a connection is refused, but there is no way to connect to (or ignore) a specific server in a DNS load-balanced setup when it is reachable.
With this patch I can retry a request that failed to provide a usable result, while 'blacklisting' the specific address that produced this result. This way I can still quickly get a sensible result from another server, unless all of them fail.
The patch introduces the --ignoreip command-line option (may be repeated with multiple addresses) and the CURLOPT_IGNORE_IPS library flag (takes a string list). Suggestions for better names are welcome.
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2011-01-11 00:23
Message:
We're discussing this on the mailing list. Closing this entry.
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2011-01-05 13:46
Message:
As this is not a bug, but a new feature and a patch, the correct procedure
would be to resend the patch and the above explanation to the curl-library
mailing list for discussion and review. Thanks for your contribution!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=3151789&group_id=976
Received on 2011-01-11