[lkml]   [2001]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Fwd: [Fwd: Is sendfile all that sexy? (fwd)]]

    > Look: http-1.1, asynchronous one, the first request is sent, but not acked.
    > Time to send the second one, but it is blocked by Nagle. If there is no
    > third request, the pipe stalls. Seems, this situation will be usual,
    > when http-1.1 will start to be used by clients, because of dependencies
    > between replys (references) frequently move it to http-1.0 synchronous
    > mode, but with some data in flight. See?

    The stall takes place if and only if the web server takes longer than
    the standalone ACK timer to generate the first bytes of reply. Once the
    first bytes of the reply hit the client, the client's second request
    will flow.

    If the web server takes longer than the standalone ACK timer to generate
    the first bytes of the reply, there is no particular value in the second
    request having arrived anyway - it will simply sit queued in the
    server's stack rather than the client's stack. You could argue that the
    server could start serving the second request, but it still has to hold
    the reply and keep it queued until the first reply is complete, and I
    suspect there is little value in working for that much parallelism here.
    Better to have as much queuing in your most distributed resource - the

    Further, even ignoring the issue of standalone acks, is there really
    much value in the second request flowing to the server before the first
    byte of the reply has hit? I would think that the parallelism in the
    server is going to be among all the different sources of request, not
    fromwithin a given source of requests.

    Also, if the browser is indeed going to do pipelined requests, and
    getting the requests to the server as very quickly as possible was
    indeed required because the requests could be started in parallel (just
    how likely that is I have no idea) i would have thought that it would
    (could) want go through the page, gather-up all the URLs from the given
    server, and then dump all those requests into the connection at once
    (modulo various folks dislike of sendmsg and writev :). We are in this
    instance at least talking about purpose coded software anyhow and not a
    random CGI dribbler. In that sense, the "logically associated data" are
    all the server's URL's from that page. Yes, this paragraph is in slight
    contradiction with my statement above about keeping things queued in the
    client :)

    rick jones
    these opinions are mine, all mine; HP might not want them anyway... :)
    feel free to email, OR post, but please do NOT do BOTH...
    my email address is raj in the domain...
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:52    [W:0.024 / U:20.732 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site