|
SPDY - Handle incomplete headers during server push.
If we receive a data frame without a status or without
a version header, we close the stream with a PROTOCOL ERROR.
Small bug fix to HttpNetworkTransaction to access the
ResponseHeaders only if headers are there.
In SpdyStream, retrun a SPDY_PROTOCOL_ERROR if we have pending
data frames, but we haven't received "status" and "version"
headers. (rch: removed the DCHECK for unit tests).
SpdyHttpStream's OnDataReceived used to expect that it would
be called only when all required headers are received. Converted
the DCHECK into an error condition and SpdyStream closes the
stream with PROTOCOL ERROR if OnDataReceived returns a network
error.
BUG= 135485
R=rch@chromium.org
TEST=network unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150121
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+291 lines, -18 lines) |
Patch |
|
M |
net/http/http_network_transaction.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_http_stream.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_http_stream.cc
|
View
|
1
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_network_transaction_spdy2_unittest.cc
|
View
|
1
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_network_transaction_spdy3_unittest.cc
|
View
|
1
|
1 chunk |
+124 lines, -0 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_proxy_client_socket.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_proxy_client_socket.cc
|
View
|
1
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_session_spdy2_unittest.cc
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_session_spdy3_unittest.cc
|
View
|
1
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_stream.h
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_stream.cc
|
View
|
1
2
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
|
M |
net/spdy/spdy_stream_test_util.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_stream_test_util.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_websocket_stream.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
net/spdy/spdy_websocket_stream.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|