Re: downloading a single file using multiple threads

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Willy Denoyette [MVP] <willy.denoyette@xxxxxxxxxx> wrote:
"Jon Skeet [C# MVP]" <skeet@xxxxxxxxx> wrote in message
news:MPG.2074d81d854ce6e498da4b@xxxxxxxxxxxxxxxxxxxxxxx
Willy Denoyette [MVP] <willy.denoyette@xxxxxxxxxx> wrote:
I'm not talking about parallel connections, I'm talking about "same
connection" multiple "overlapping range" requests. I know you kan
have parallel requests over two different connections.

But I can't see why you're focusing on "same connection" multiple
requests. There's nothing in the OP's original post to suggest he's
wanting that, and I don't think Peter, Joerg or I have suggested doing
it either.

Wait a minute I guess your purpose is one again to pick on me, right?

Not at all - and I don't recall picking on you particularly in the past
either :)

It's just that when talking about HTTP and FTP I've always been
considering what I think of as the natural way of downloading multiple
chunks in multiple threads - using multiple requests on multiple
connections.

You repeatedly say (correctly, as far as I'm aware) that it can't be
done on a single connection (with HTTP/FTP) but that's a straw man that
no-one's actually suggested - so why keep talking about it?

<snip>

I don't even know whether the OP isn't simply talking about a file
server request using System.IO.

Indeed. It would be nice if the OP would return to the thread :)

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: downloading a single file using multiple threads
    ... The multi part requests in HTTP1.1 are meant to request a single part or multiple parts in a single request, but you can't requests multiple parts in parallel from multiple client threads. ... I know that down-load managers claim to work over HTTP, but that doesn't mean they support multi-part parallel request handling over the same or multiple connections, I don't even know if the protocol allows you to issue new range request when you have a range requests pending. ... If on one connection the client asks for the first megabyte and on a second connection the same client asks for the second megabyte, then if the server is capable of servicing both requests at the same time, there's no reason the client can't wind up receiving both the first and second megabytes in parallel. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Handling multiple requests in a WCF Service
    ... IIS will handle multiple requests simultaneously, ... one at a time (although requests will come in on multiple threads and be ... I have a WCF service using a WSHTTP binding context running under IIS. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: downloading a single file using multiple threads
    ... have parallel requests over two different connections. ... But I can't see why you're focusing on "same connection" multiple ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Writing a bare bones Download manager
    ... i mean to download using multiple connections for each section (say 4 ... administrative restrictions on bandwith per connection or something ... multiple threads are more efficient as compared to multiple precesses ...
    (comp.programming)
  • Re: downloading a single file using multiple threads
    ... logical connection is an end to end socket connection, ... at the session layer (HTTP is operating at this layer - and it's ... you can have multiple range requests on separate "real ...
    (microsoft.public.dotnet.languages.csharp)