[Yum-devel] [PATCH] User-Agent: add simultaneous connection count and limit

James Antill james at fedoraproject.org
Wed May 23 15:14:48 UTC 2012


On Wed, 2012-05-23 at 11:12 +0200, Zdeněk Pavlas wrote:
> Internal 'user_agent_x' option is appended to the user agent.
> Parallel downloader sets this before starting a connection,
> so server logs contain something like:
> 
> User-Agent: urlgrabber/3.9.1 yum/3.4.3; connection 1 of 2

 I assume this is in response to the Fedora-devel "outrage" over having
more than one connection go to a single server?
 Realistically I think the people are crazy, in 2012 having 1 or 3
connections just shouldn't even show up in any stats. ... unless you are
on the client and one of the connections is slow, which is the problem
we are trying to fix.

 I worry that giving the remote end an "easy" way to send out 501s (or
whatever) by matching on "connection [23456789]" is going to encourage
them to not use any official mirror manage method to set "max
connections" ... which will just hurt everyone (plus the other 95% of
mirror admins. aren't going to care, and we are just sending text to
make it harder to merge UAs/etc.)

 It was suggested that we put in the UA how the mirror got picked (Eg.
baseurl/mirror/metalink+priority and maybe how far down the list they
were), and I can sort of see how that info. might be useful.
 But for this feature I think if it's a real concern that rel-eng worry
about I'd rather ship with a default config. that never does more than
one connection to a server.



More information about the Yum-devel mailing list