for a persistent h1 connection https://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsHttpTransaction.cpp#1427
for a non persistent h1 connection we just close the connection and don't even notice there is data there On Mon, Aug 31, 2015 at 4:50 PM, Josh Matthews <[email protected]> wrote: > On 2015-08-31 4:14 PM, Patrick McManus wrote: > >> The context for these questions is that I'm trying to figure out how Gecko >>> decides what to do with the residual bytes left over from an HTTP >>> response >>> to a FETCH request, where the response contains a non-empty body in >>> violation of the spec. It appears that Activate discards any bytes that >>> were pushed back into the connection, but what guides this decision? >>> >>> >> We just consider it framing garbage and do our best to skip over it >> looking >> for the next stream. I think we sometimes give up and close the stream. >> Indeed, its a protocol mistake on the part of the sender. >> >> hth >> >> > Thanks, that's helpful. Do you know where the logic described above > resides in the code? > > Cheers, > Josh > > _______________________________________________ > dev-tech-network mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-network > > _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
