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

Issue 24246016: Make HttpNetworkTransaction no longer own a reference to HttpNetworkSession. (Closed)

Created:
7 years, 3 months ago by mmenke
Modified:
7 years, 2 months ago
Reviewers:
mmenke1, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Make HttpNetworkTransaction no longer own a reference to HttpNetworkSession. It is a bug if anything is holding on to a transaction after the levels of the network stack above the Session are destroyed, so there's no reason to hold on to the reference. There have historically been a number of such bugs, and they currently produce useless crash stack traces, which show crashes as callbacks try to call into deleted higher level objects. This should hopefully make them crash more consistently, with more useful stack traces when owners of these requests delete them in the absence of the network stack, assuming nothing else is holding on to the HttpNetworkSession. BUG=295344, 294910 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=229081

Patch Set 1 #

Patch Set 2 : sync #

Patch Set 3 : Fix test #

Total comments: 9

Patch Set 4 : Response to wtc's comments #

Total comments: 2

Patch Set 5 : Response to wtc's comment #

Patch Set 6 : Sync, fix new test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -132 lines) Patch
M net/http/http_network_transaction.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 66 chunks +126 lines, -130 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mmenke
wtc: Mind reviewing this? The unit test changes are largely mechanical. My only concern is ...
7 years, 2 months ago (2013-10-15 17:48:24 UTC) #1
wtc
Patch set 3 LGTM. High-level commenrs: 1. This seems like a good idea. There could ...
7 years, 2 months ago (2013-10-15 23:08:21 UTC) #2
mmenke
On 2013/10/15 23:08:21, wtc wrote: > Patch set 3 LGTM. > > High-level commenrs: > ...
7 years, 2 months ago (2013-10-15 23:49:37 UTC) #3
wtc
More review comments on patch set 3: https://codereview.chromium.org/24246016/diff/56001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/24246016/diff/56001/net/http/http_network_transaction_unittest.cc#newcode5509 net/http/http_network_transaction_unittest.cc:5509: for (int ...
7 years, 2 months ago (2013-10-16 15:04:32 UTC) #4
mmenke
Thanks for the careful review! https://codereview.chromium.org/24246016/diff/56001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/24246016/diff/56001/net/http/http_network_transaction_unittest.cc#newcode3748 net/http/http_network_transaction_unittest.cc:3748: // Configure against proxy ...
7 years, 2 months ago (2013-10-16 15:58:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/94001
7 years, 2 months ago (2013-10-16 16:26:02 UTC) #6
wtc
Patch set 4 LGTM. Thanks. https://codereview.chromium.org/24246016/diff/94001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/24246016/diff/94001/net/http/http_network_transaction_unittest.cc#newcode7462 net/http/http_network_transaction_unittest.cc:7462: session_deps_.socket_factory->AddSocketDataProvider(&data2); Nit: if you ...
7 years, 2 months ago (2013-10-16 18:12:43 UTC) #7
mmenke
https://codereview.chromium.org/24246016/diff/94001/net/http/http_network_transaction_unittest.cc File net/http/http_network_transaction_unittest.cc (right): https://codereview.chromium.org/24246016/diff/94001/net/http/http_network_transaction_unittest.cc#newcode7462 net/http/http_network_transaction_unittest.cc:7462: session_deps_.socket_factory->AddSocketDataProvider(&data2); On 2013/10/16 18:12:44, wtc wrote: > > Nit: ...
7 years, 2 months ago (2013-10-16 18:17:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/137001
7 years, 2 months ago (2013-10-16 18:21:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/137001
7 years, 2 months ago (2013-10-16 20:37:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/137001
7 years, 2 months ago (2013-10-16 21:21:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/166001
7 years, 2 months ago (2013-10-17 00:15:42 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/166001
7 years, 2 months ago (2013-10-17 01:28:05 UTC) #13
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-17 04:03:04 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/24246016/166001
7 years, 2 months ago (2013-10-17 04:39:36 UTC) #15
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 08:56:08 UTC) #16
Message was sent while issue was closed.
Change committed as 229081

Powered by Google App Engine
This is Rietveld 408576698