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-3585128 ] Please add support for setting IP TOS/Precedence flags

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 07 Nov 2012 04:20:44 -0800

Bugs item #3585128, was opened at 2012-11-07 04:20
Message generated for change (Tracker Item Submitted) made by gcc
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3585128&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: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Chris Wilson (gcc)
Assigned to: Daniel Stenberg (bagder)
Summary: Please add support for setting IP TOS/Precedence flags

Initial Comment:
IP TOS (Precedence) flags as described in RFC 791 are really useful for building QoS routers that treat bulk and interactive traffic differently; but only if client applications actually bother to declare whether their traffic is bulk or interactive.

SSH and bittorrent do this already, but there doesn't seem to be any way to do it in curl.

You can do it with setsockopt(IP_TOS) on all platforms that support it except Windows, which disables this functionality and uses DSCP instead (unlike everyone else).

Some discussion of whether to use IPTOS_THROUGHPUT, IPTOS_PREC_PRIORITY or something else for bulk traffic:
http://lists.ibiblio.org/pipermail/bittorrent/2004-December/001060.html . I don't particularly care as long as we do *something* to mark bulk and interactive traffic differently.

Please could we add at least a flag that sets the precedence of all connections made by curl to bulk or interactive?

Even better would be heuristics to determine which mode is appropriate. My guess is that all applications of command-line curl are bulk, using libcurl to write to an output file or for any protocol except HTTP is bulk, and everything else (libcurl HTTP not to a file) is interactive.

If you accept this proposal I can try to work up a patch.

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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3585128&group_id=976
Received on 2012-11-07

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET