Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 2771263002: Retry upon 421 status code without IP pooling. (Closed)

Created:
3 years, 9 months ago by Bence
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, bnc+watch_chromium.org, mmenke, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Retry upon 421 status code without IP pooling. Implement logic in HttpNetworkTransaction to retry a request at most once with IP pooling disabled if status code 421 Misdirected Request is received in the response. Add ERR_MISDIRECTED_REQUEST, which is used within HttpNetworkTransaction, and is also logged in NetLog event HTTP_TRANSACTION_RESTART_AFTER_ERROR. Plumb |enable_ip_based_pooling| from HttpNetworkTransaction through HttpStreamRequest::RequestStream() through HttpStreamFactoryImpl::JobController::JobController() through HttpStreamFactoryImpl::JobFactory::CreateJob() through HttpStreamFactoryImpl::Job::Job() to SpdySessionPool::FindAvailableSession(). Add HttpNetworkTransactionTest. Add extra check in SpdySessionPoolTest::RunIPPoolingTest(). BUG=546991 Review-Url: https://codereview.chromium.org/2771263002 Cr-Commit-Position: refs/heads/master@{#460996} Committed: https://chromium.googlesource.com/chromium/src/+/8016c1f6899aaf53e3cc81d29cc9c8306b6e9927

Patch Set 1 #

Total comments: 17

Patch Set 2 : Re: #10. #

Total comments: 1

Patch Set 3 : Rebase. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -83 lines) Patch
M net/base/net_error_list.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/bidirectional_stream.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_network_transaction.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 4 chunks +24 lines, -17 lines 2 comments Download
M net/http/http_network_transaction_unittest.cc View 1 4 chunks +134 lines, -0 lines 0 comments Download
M net/http/http_stream_factory.h View 3 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 8 chunks +22 lines, -10 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 7 chunks +10 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 9 chunks +10 lines, -9 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.h View 2 chunks +6 lines, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 1 2 5 chunks +8 lines, -5 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 29 chunks +37 lines, -30 lines 0 comments Download
M net/http/http_stream_factory_test_util.h View 5 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_test_util.cc View 8 chunks +10 lines, -3 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 2 2 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
Bence
Ryan: PTAL. Thank you.
3 years, 9 months ago (2017-03-24 18:47:35 UTC) #6
Ryan Hamilton
zhongyi: Can you do a "shadow" review of this CL? Once you're happy I'll do ...
3 years, 9 months ago (2017-03-24 21:44:06 UTC) #8
Zhongyi Shi
Sorry about the delay. I'll review today.
3 years, 9 months ago (2017-03-27 15:05:53 UTC) #9
Zhongyi Shi
Looks good, thanks for the patience! I was wondering though, since the enable_ip_based_pooling is not ...
3 years, 8 months ago (2017-03-29 03:05:06 UTC) #10
Bence
On 2017/03/29 03:05:06, Zhongyi Shi wrote: > Looks good, thanks for the patience! > > ...
3 years, 8 months ago (2017-03-29 16:46:08 UTC) #11
Bence
PTAL. Thank you.
3 years, 8 months ago (2017-03-29 16:46:55 UTC) #12
Zhongyi Shi
Thanks for the patience, lgtm. The rationale of not doing JobControllerTest sounded reasonable to me. ...
3 years, 8 months ago (2017-03-30 22:33:02 UTC) #13
Bence
Ryan: PTAL. Zhongyi: Thank you for the review.
3 years, 8 months ago (2017-03-30 22:53:03 UTC) #14
Ryan Hamilton
lgtm Should we also do this for QUIC too? https://codereview.chromium.org/2771263002/diff/40001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/2771263002/diff/40001/net/http/http_network_transaction.cc#newcode1544 net/http/http_network_transaction.cc:1544: ...
3 years, 8 months ago (2017-03-30 23:51:07 UTC) #17
Bence
Thank you both for the review. As for QUIC, I am not sure if there ...
3 years, 8 months ago (2017-03-31 00:09:33 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771263002/40001
3 years, 8 months ago (2017-03-31 01:30:44 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 02:12:24 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8016c1f6899aaf53e3cc81d29cc9...

Powered by Google App Engine
This is Rietveld 408576698