Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: What is the fastest way to do 400 HTTP requests using requests library? Date: Tue, 5 Jan 2016 10:32:11 -0700 Lines: 24 Message-ID: References: <0e42a90b-b736-4050-a20c-6d387048daf3@googlegroups.com> <568b027c$0$1588$c3e8da3$5496439d@news.astraweb.com> <568b8eff$0$1588$c3e8da3$5496439d@news.astraweb.com> <87r3hwarib.fsf@jester.gateway.pace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de FBG6ANWE5CQQnjs2Q2y+TANeyBXVaDuj63EHohj3+3UQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:library': 0.09; 'subject:using': 0.09; 'jan': 0.11; 'causing': 0.13; 'server,': 0.15; '2016': 0.16; 'host)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'rush.': 0.16; 'status?': 0.16; 'subject:fastest': 0.16; 'subject:requests': 0.16; 'wrote:': 0.16; 'abuse': 0.18; 'url:status': 0.18; 'am,': 0.23; 'header:In-Reply- To:1': 0.24; 'paul': 0.24; 'requests': 0.25; 'error': 0.27; 'wonder': 0.27; 'message-id:@mail.gmail.com': 0.27; 'initial': 0.28; 'code': 0.30; 'somebody': 0.30; 'though,': 0.32; 'maybe': 0.33; "d'aprano": 0.33; 'http': 0.33; 'steven': 0.33; 'weeks.': 0.33; 'tue,': 0.34; 'running': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'but': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:209.85.213': 0.37; 'thought': 0.37; 'things': 0.38; 'received:209': 0.38; 'why': 0.39; 'application': 0.39; 'subject:the': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'our': 0.64; "they're": 0.66; 'sounds': 0.76; 'dismissed': 0.84; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=brcNUaoTUSaaTVzrgimFL4h2Mc6SVcL5eh/7iFSIUrQ=; b=zBmiFNmvVAuNuq+MjLmAyzukIqWorfSioXk1TU2FxoSmGtmaWlcgLUAkD1Ss3Xr7Pb 2w7PkoHgqyP+gJmIkSfdKDuBb58kzLtgD2wZ4b2fxwGFS47p8bivM80mzGfA9UgD5Lky ViZlrD9yTDkk0dQcX2wwoXCi/GauFkgjfCldtAHKrxLX7813unn8QtSnJDzoCwxMQC9J GN0QFrL8J0s/my7HBA1IOU/BCg7ZX843eRg3ShR+Nk6eEH6Ung+uw0f/bgTTnj0wZTaG RebWt4jmoWM5zBy+M0At7JrqWU24Dc4FFjdJ/Gr5fTLMGlk56LLU1rHI0Dz3QuNKx3GS ya2Q== X-Received: by 10.50.111.164 with SMTP id ij4mr4859072igb.93.1452015171060; Tue, 05 Jan 2016 09:32:51 -0800 (PST) In-Reply-To: <87r3hwarib.fsf@jester.gateway.pace.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101274 On Tue, Jan 5, 2016 at 10:02 AM, Paul Rubin wrote= : > Steven D'Aprano writes: >> Maybe they're stress-testing a web server, or they just want to download >> things in a rush. > > They're stress-testing a web server through a tor proxy? This sounds > abusive to me. > > I also wonder whether 400 referred to the HTTP 400 error code rather > than the number of requests to be sent. As in: > > - Layer 7 (=E2=80=9C400 bad request=E2=80=9D) attacks toward our web = and application > servers, causing Linode Manager outages > > from http://status.linode.com/incidents/mmdbljlglnfd > regarding a big DDOS attack that's been running against Linode.com > (a VPS host) over the past couple weeks. I had the same initial thought about the status code but dismissed it, since why would somebody intentionally send a request that will return a 400 status? I was not thinking about abuse though, so the DDoS scenario did not occur to me.