4 ms·
- The client can stop an incoming push (send reset on the pushed stream). Due to latency it might waste some bandwidth, but it's deemed to be an insignificant p
by pornel 12y ago
- The client can stop an incoming push (send reset on the pushed stream). Due to latency it might waste some bandwidth, but it's deemed to be an insignificant problem, since otherwise nothing else would be using the connection anyway.
- It's independent of the protocol. Each server can invent its own method. Personally I'm hoping servers/proxies will "upgrade" some HTTP/1.1 Link header to PUSH, e.g.:
Link: </style.css>; rel=preload
- lucaspiller 12y ago> Due to latency it might waste some bandwidth, but it's deemed to be an insignificant problem, since otherwise nothing else would be using the connection anyway That sounds like it could be an issue on mobile devices. If I've got a 1GB data plan, I don't want you sending large files that I've already got cached. Even partially sending them could consume significant bandwidth given the latency involved.
- bgentry 12y agoHTTP/2's flow control offers a bit of a solution here for mobile devices. Flow control operates on a credits/tokens scheme at both the connection level and the stream level. A mobile client could use a low initial window size so that all new streams are limited in how much data they can send. The client can preemptively grant large flow control windows to streams that it requests, and retroactively grant additional credits to push streams that it decides it wants. The tradeoff is that you're introducing a round-trip for pushed resources to acknowledge that you want to receive the entire resource. That may or may not make sense, depending on the use case. http://http2.github.io/http2-spec/#FlowControl http://http2.github.io/http2-spec/#FlowControl
- strommen 12y agoOkay, thanks. It looks like nghttp2 uses the Link header[1] as you suggest, and mod_spdy uses a "X-Associated-Content" header[2]. My biggest concern with HTTP/2 is that it's going to be difficult for web applications to organize their server push requests. It seems like it will definitely require updates to server app frameworks to make this tractable. 1. https://nghttp2.org/blog/2015/02/10/nghttp2-dot-org-enabled-http2-server-push/ https://nghttp2.org/blog/2015/02/10/nghttp2-dot-org-enabled-... 2. https://code.google.com/p/mod-spdy/wiki/OptimizingForSpdy https://code.google.com/p/mod-spdy/wiki/OptimizingForSpdy
- jimktrains2 12y ago> but it's deemed to be an insignificant problem, since otherwise nothing else would be using the connection anyway. Except for other applications trying to use the finite, and possibly expensive, bandwidth of the connection as a whole?