Re: HttpWebRequest and pipelining

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

From: cb (cb_at_discussions.microsoft.com)
Date: 03/25/05


Date: Fri, 25 Mar 2005 08:57:06 -0800

No, keep alive is required for pipelining to work, but it doesn't determine
how requests are sent.

Here is a description of what I am trying to do:
http://www.mozilla.org/projects/netlib/http/pipelining-faq.html

just in my own client, as Firefox claims IIS doesn't handle pipelined
requests correctly and doesn't even try to send pipelined requests if the
site is served by IIS.
Or if anyone knows about an available client that will send pipelined
requests to IIS, I'd be happy to try that. (Opera doesn't do it for IIS
either)

I'd like to verify the IIS behavior, with a really simple client, basically
sending off 3 requests over a single connection in a nonsequential manner.
like

GET
GET
GET
HTTP/1.1 200 OK
HTTP/1.1 200 OK
HTTP/1.1 200 OK
 
The aspect of squeezing all 3 GETs into a singel TCP package is not that
important to me, but the ability to send additional requests over the same
connection, before the previous requests come back is. This is ultimately for
an environment that has high latency.

Thanks

"Brock Allen" wrote:

> Does HttpWebRequest.KeepAlive not do what you want?
>
> -Brock
> DevelopMentor
> http://staff.develop.com/ballen
>
>
>
> > The httpWebRequest class supposedly supports HTTP 1.1 pipelining. I
> > wasn't able to figure out how to send multiple GET requests pipelined
> > together. All I could do was set one URI, and do GetResponse, or
> > BeginGetResponse, which would fire off a request for just that one
> > URI.
> >
> > I need it to pipeline multiple GETs over the same connection, to test
> > whether our Web server properly responds to pipelined requests.
> >
> > Any pointers on how to do that, would be much appreciated
> >
> > Thanks
> > cb
>
>
>
>



Relevant Pages

  • Re: http pipelining
    ... Oops, sorry, you meant sending requests in parallel, right? ... down a single TCP connection, without waiting for the first response. ... Certainly urllib and urllib2 don't support pipelining. ...
    (comp.lang.python)
  • Re: [9fans] About 9P ...
    ... The fact request can be pipelined like this -I mean, by taking care of the ... This would also work if FIDs ... in the same order as the requests, ... At that point you're still pipelining, and since you're reading presumably into separate buffers, or different locations in the same buffer, who cares about the order? ...
    (comp.os.plan9)
  • Re: HTTP 1.1 Support in LWP / ParallelUA
    ... "persistent connections" ... and "pipelining" (sending several requests before the corresponding ... the case that there's a distinction to be drawn between "HTTP/1.1 features" ... persistent connections and pipelining. ...
    (comp.lang.perl.modules)
  • [ANN] net-http-pipeline 1.0
    ... An HTTP/1.1 pipelining implementation atop Net::HTTP. ... A pipelined connection ... sends multiple requests to the HTTP server without waiting for the responses. ...
    (comp.lang.ruby)
  • Re: HttpWebRequest and pipelining
    ... > sending off 3 requests over a single connection in a nonsequential manner. ... situations it doesn't use pipelining. ... TCP package) if it thinks it is the right thing to do. ...
    (microsoft.public.dotnet.framework)