Re: From HTTP channels, transactions connections to TCP sockets - how does this all come together?

Boris Zbarsky <[email protected]> Sat, 08 Sep 2012 15:40:54 -0400
Newsgroups gmane.comp.mozilla.devel.netlib
Message-ID <[email protected]>
On 9/8/12 3:17 AM, [email protected] wrote:
> What's the relationship between [HTTP] channels, transactions and connections?

My understanding, which may not be correct.

An HTTP connection corresponds to an actual TCP connection.

An HTTP transaction corresponds to an HTTP request/response pair. 
Multiple transactions can happen on the same connection, either one 
after another with keep-alive.  I'm not sure how this all works with 
pipelining, since an nsHttpPipeline implements both the connection and 
transaction APIs....

An http channel is the representation of one HTTP transaction as exposed 
to the rest of Gecko.

-Boris