Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'suppose': 0.07; 'http': 0.09; 'parameter': 0.09; 'subject:How': 0.10; 'apache': 0.15; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'processes.': 0.16; 'recognizing': 0.16; 'subject:limit': 0.16; 'sender:addr:gmail.com': 0.17; 'separate': 0.22; 'browsers': 0.24; 'config': 0.24; 'skip': 0.24; 'header': 0.24; 'helpful': 0.24; "haven't": 0.24; "i've": 0.25; 'mention': 0.26; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'parameters.': 0.31; 'wind': 0.31; 'file': 0.32; 'themselves': 0.32; 'option': 0.32; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'subject:?': 0.36; 'should': 0.36; 'server': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'most': 0.60; 'tell': 0.60; 'such': 0.63; 'more': 0.64; 'here': 0.66; 'reply': 0.66; 'limit': 0.70; 'brand': 0.72; 'connection.': 0.74; 'hoping': 0.75; 'overlooked': 0.84; 'subject:tell': 0.84; 'thing,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=914ykyFPYlBKCawW7JkkeBsoblzkbUv5cr6BvHgCVSM=; b=gtSZT/wBZndUSu+hqubZnzjKOPbagf2irTRUQNYiafRpNW9Kko/6p3vJQQuBz9yhI+ YBXw8LLSRyrZ5/26pizCJJYtUVntad+QjqCPzxrW6lOA5aR1uqzIimv5y3GGZ24I/IFQ DgHwI7ha3/ZKM2wGXiHNchP+GWp/dJnvT1EifuEHkCplVeEGDH4jmudM7Lmoo0k/4rLq go+RGtcLGObVkpM7xfT8bcC645vDenPia6sxun9oI5O0/5K4IwAGGo19TKNVqRTwfjLn B6KZ+rP14mDB14axuJxQO7VGEGfhjrfwgDy8ZqprRWDASYLeCLX/hdaJVK++rK/D9xJo E3VA== MIME-Version: 1.0 X-Received: by 10.42.92.6 with SMTP id r6mr3451187icm.21.1383932360918; Fri, 08 Nov 2013 09:39:20 -0800 (PST) Sender: skip.montanaro@gmail.com In-Reply-To: References: Date: Fri, 8 Nov 2013 11:39:20 -0600 X-Google-Sender-Auth: OfEQY9945kre-aR4CJVN_QSeXAQ Subject: Re: OT: How to tell an HTTP client to limit parallel connections? From: Skip Montanaro To: Python Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383932369 news.xs4all.nl 16005 [2001:888:2000:d::a6]:42235 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58823 > What I really need is an HTTP header or meta-tag or something that I > can use to tell clients to limit themselves to a single connection. > > I haven't been able to find such a thing, but I'm hoping I've > overlooked something... That will only go so far. Suppose you tell web browsers "no more than 3 connections", then get hit by 30 nearly simultaneous, but separate clients. Then you still wind up allowing up to 90 connections. There should be a parameter in your web server's config file to limit the number of simultaneously active threads or processes. It's been a long time for me, and you don't mention what brand of server you are running, but ISTR that Apache has/had such parameters. (Also, while this is off-topic for comp.lang.python, most people here are a helpful bunch, and recognizing that it is off-topic, will want to reply off-list. You don't give them that option with "invalid@invalid.invalid" as an email address.) Skip