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

Issue 2895263003: Revert CLs landed in HttpStreamFactoryImpl to track down a crasher (Closed)

Created:
3 years, 7 months ago by xunjieli
Modified:
3 years, 7 months ago
Reviewers:
Bence, Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org, bnc+watch_chromium.org, net-reviews_chromium.org, Ryan Hamilton, Zhongyi Shi, tbansal1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert CLs landed in HttpStreamFactoryImpl to track down a crasher There is a top crasher in proxy resolution. This CL is to revert the proxy refactoring CL (c9a993789f4732a105d5ede4f9f36e0f7e0ce9b9) so we can see if the crash goes away. To have a clean revert, this CL also reverted five additional changes. Revert "Extract Proxy Resolution out of HttpStreamFactoryImpl::Job" crrev.com/c9a993789f4732a105d5ede4f9f36e0f7e0ce9b9. Revert "Fix SpdySessionKey for HTTP/2 alternative Jobs." crrev.com/1fc76912bc055188dc76c09f6032096c079d4d86. Revert "Convert some DCHECKs to CHECKs to help track down a proxy bug." crrev.com/89ca16bcbd71651d183a2d8c430a10d3275cbd40. Revert "Return Job as unique_ptr from factory methods." crrev.com/6b86d7c8b20f25282abef00a275c40ced632aab4. Revert "Return Request as unique_ptr from JobController::Start()." crrev.com/f4bdc5a34983b679ca8b138ad493391b8220f807. Revert "Fix HttpStreamFactoryImpl::JobController::GetLoadState()" crrev.com/b6270d12412565789accd0aa7d37f11a86982fb1. BUG=723589, 475060 Review-Url: https://codereview.chromium.org/2895263003 Cr-Commit-Position: refs/heads/master@{#473636} Committed: https://chromium.googlesource.com/chromium/src/+/8fb01a7d9c7310372afa618e9b4a6799e68a3365

Patch Set 1 #

Patch Set 2 : Revert "Fix SpdySessionKey for HTTP/2 alternative Jobs." #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+982 lines, -1273 lines) Patch
M net/http/bidirectional_stream.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_network_transaction.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 6 chunks +15 lines, -100 lines 0 comments Download
M net/http/http_stream_factory.h View 3 chunks +3 lines, -3 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 4 chunks +12 lines, -15 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 8 chunks +82 lines, -15 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 10 chunks +31 lines, -24 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 17 chunks +139 lines, -86 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.h View 10 chunks +43 lines, -54 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 17 chunks +160 lines, -301 lines 2 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 1 44 chunks +464 lines, -609 lines 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 3 chunks +4 lines, -12 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/http/http_stream_factory_test_util.h View 5 chunks +3 lines, -8 lines 0 comments Download
M net/http/http_stream_factory_test_util.cc View 8 chunks +20 lines, -35 lines 0 comments Download
M net/spdy/chromium/spdy_test_util_common.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 24 (16 generated)
xunjieli
Bence, PTAL. (cc-ing my other reviewers for their information).
3 years, 7 months ago (2017-05-22 16:55:51 UTC) #3
xunjieli
Bence, I feel really bad but I need to revert one more of your CLs ...
3 years, 7 months ago (2017-05-22 17:12:33 UTC) #9
mmenke
On 2017/05/22 17:12:33, xunjieli wrote: > Bence, I feel really bad but I need to ...
3 years, 7 months ago (2017-05-22 17:17:08 UTC) #14
Bence
LGTM, thank you!
3 years, 7 months ago (2017-05-22 17:23:12 UTC) #15
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/2895263003/20001
3 years, 7 months ago (2017-05-22 17:55:10 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/8fb01a7d9c7310372afa618e9b4a6799e68a3365
3 years, 7 months ago (2017-05-22 18:38:17 UTC) #21
Zhongyi Shi
https://codereview.chromium.org/2895263003/diff/20001/net/http/http_stream_factory_impl_job_controller.cc File net/http/http_stream_factory_impl_job_controller.cc (left): https://codereview.chromium.org/2895263003/diff/20001/net/http/http_stream_factory_impl_job_controller.cc#oldcode790 net/http/http_stream_factory_impl_job_controller.cc:790: main_job_ = job_factory_->CreateAltSvcJob( FYI, Ryan and I were just ...
3 years, 7 months ago (2017-05-22 19:05:39 UTC) #23
xunjieli
3 years, 7 months ago (2017-05-22 19:15:00 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2895263003/diff/20001/net/http/http_stream_fa...
File net/http/http_stream_factory_impl_job_controller.cc (left):

https://codereview.chromium.org/2895263003/diff/20001/net/http/http_stream_fa...
net/http/http_stream_factory_impl_job_controller.cc:790: main_job_ =
job_factory_->CreateAltSvcJob(
On 2017/05/22 19:05:39, Zhongyi Shi wrote:
> FYI, Ryan and I were just looking at the code today, and we found the original
> proxy resolution CL might cause a regression bug here to create a AltSvc Job
for
> main_job directly in the preconnect case.
> 
> In fact, we should check whether the alternative_service is valid, if not,
> create a TCP job. Else, set destination from the alternative_service and
> ApplyHostMappingRules, then create a alt svc job. 

Acknowledged. Good catch! Will do this when relanding the patch. Thanks, Cherie.

Powered by Google App Engine
This is Rietveld 408576698