logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: multiple GET requests -- why?
Author
Doug22



Joined: 02 Jun 2013
Posts: 57
Location: Houston TX

PostPosted: Mon 03 Jun '13 0:17    Post subject: multiple GET requests -- why? Reply with quote

I’m a real Apache newbie, so pardon what may be silly questions. But I’m starting to explore my access_log files, and seeing some value in doing so.

I’ve been noticing something that I’m really scratching my head about. I often see multiple (I mean LOTS) of consecutive requests for a document on my website. These are logged with a “206” status code, which I thought meant that they were successfully served. So if they were successfully served, why is someone asking for them repeatedly?

As in

76.173.254.220 - - [01/Jun/2013:17:31:53 -0500] "GET /~fiz/tele/Oleson/Oleson.pdf HTTP/1.1" 206 21206
76.173.254.220 - - [01/Jun/2013:17:31:53 -0500] "GET /~fiz/tele/Oleson/Oleson.pdf HTTP/1.1" 206 4608
76.173.254.220 - - [01/Jun/2013:17:31:53 -0500] "GET /~fiz/tele/Oleson/Oleson.pdf HTTP/1.1" 206 512
.
.
.

a hundred or so more times in a row.

OK, this could just be a DoS attack, but it just goes on for just a minute or so, and then stops.

Er, wait, maybe 206 is only a partial success code, and the client is just poking my server to get the whole thing? Is the number after that code the size of the chunk that one request managed to get? Why it it necessary to ask a hundred or more times for one document? That whole document is 5MB. Other people can get the document in a single request.

Can someone explain all this to me? Is this about range headers?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7404
Location: EU, Germany, Next to Hamburg

PostPosted: Mon 03 Jun '13 10:55    Post subject: Reply with quote

Hi,
that is a normal behaviour for modern download utilities like DownThemAll or so open several connections to download the file faster. There is nothing to worry about.

On this picture (http://www.ffextensions.com/images/downthemall!-3.jpg) you can see that the tool download parts from the file. That's why there is the range.
Back to top
Doug22



Joined: 02 Jun 2013
Posts: 57
Location: Houston TX

PostPosted: Mon 03 Jun '13 15:55    Post subject: Reply with quote

Thank you, James. I gather that this is a strategy for where the client is faster than the servers, so the client can be actively downloading several streams at once from different servers. Is that the case?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7404
Location: EU, Germany, Next to Hamburg

PostPosted: Mon 03 Jun '13 20:10    Post subject: Reply with quote

The client don't need to be faster, but yes parallel connection are often faster.
Back to top


Reply to topic   Topic: multiple GET requests -- why? View previous topic :: View next topic
Post new topic   Forum Index -> Apache