cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3151789 ] [patch] Ignore certain IPs in connections

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 05 Jan 2011 12:09:15 +0000

Bugs item #3151789, was opened at 2011-01-05 13:09
Message generated for change (Tracker Item Submitted) made by koresh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Johan van Selst (koresh)
Assigned to: Nobody/Anonymous (nobody)
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.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3151789&group_id=976
Received on 2011-01-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET