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

Issue 449009: AddRef() / Release() while URLRequest is alive in OCSPRequestSession (Closed)

Created:
11 years ago by ukai
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

AddRef() / Release() while URLRequest is alive in OCSPRequestSession To make sure OCSPRequestSession is avlie while URLRequest is running, AddRef() in StartURLRequest() and Release() in OnReadCompleted(). BUG=28526, 28769 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33950

Patch Set 1 #

Patch Set 2 : Relese() after request_ is deleted #

Total comments: 7

Patch Set 3 : refactor #

Total comments: 9

Patch Set 4 : fix deadlock in Cancel call, notify worker in WillDestroyCurrentMessageLoop #

Total comments: 8

Patch Set 5 : fix wtc's comment #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -11 lines) Patch
M net/ocsp/nss_ocsp.cc View 1 2 3 4 7 chunks +20 lines, -11 lines 3 comments Download

Messages

Total messages: 21 (0 generated)
ukai
11 years ago (2009-11-30 08:31:03 UTC) #1
wtc
Thank you for the patch! http://codereview.chromium.org/449009/diff/1001/2001 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/449009/diff/1001/2001#newcode532 net/ocsp/nss_ocsp.cc:532: req->Cancel(); I still don't ...
11 years ago (2009-12-01 02:13:35 UTC) #2
wtc
I'm also wondering if URLFetcher has the same bug. The URLFetcher::Core destructor doesn't have a ...
11 years ago (2009-12-01 02:28:05 UTC) #3
wtc
LGTM. I spent several hours looking into this crash. I still haven't figured out why ...
11 years ago (2009-12-03 04:49:38 UTC) #4
wtc
On 2009/12/03 04:49:38, wtc wrote: > > I still haven't figured out why this is ...
11 years ago (2009-12-03 05:37:33 UTC) #5
ukai
On 2009/12/03 05:37:33, wtc wrote: > On 2009/12/03 04:49:38, wtc wrote: > > > > ...
11 years ago (2009-12-03 06:04:17 UTC) #6
wtc
On 2009/12/03 06:04:17, ukai wrote: > > I think so. RemoveDestructionObserver must be called on ...
11 years ago (2009-12-03 06:12:08 UTC) #7
ukai
On 2009/12/03 06:12:08, wtc wrote: > On 2009/12/03 06:04:17, ukai wrote: > > > > ...
11 years ago (2009-12-03 06:17:46 UTC) #8
wtc
On 2009/12/03 06:17:46, ukai wrote: > > Oh, we shouldn't call RemoveDestructionObserver() in OCSPRequestSession > ...
11 years ago (2009-12-03 07:45:35 UTC) #9
ukai
On 2009/12/03 07:45:35, wtc wrote: > On 2009/12/03 06:17:46, ukai wrote: > > > > ...
11 years ago (2009-12-03 07:48:17 UTC) #10
wtc
I think we should also check in your CL even if pmarks verifies my CL ...
11 years ago (2009-12-03 07:54:15 UTC) #11
wtc
On 2009/12/03 07:48:17, ukai wrote: > > Ah, yes. that's right. > Maybe, we can ...
11 years ago (2009-12-03 07:59:22 UTC) #12
ukai
On 2009/12/03 07:59:22, wtc wrote: > On 2009/12/03 07:48:17, ukai wrote: > > > > ...
11 years ago (2009-12-03 08:01:00 UTC) #13
wtc
On 2009/12/03 08:01:00, ukai wrote: > > I mean io_loop_ is NULL in constructor, and ...
11 years ago (2009-12-03 08:09:58 UTC) #14
ukai
I fixed to io_loop_ management in OCSPInitSingleton. Could you take a look again, please? Thanks. ...
11 years ago (2009-12-03 10:51:58 UTC) #15
wtc
LGTM, but I have some questions about the correctness of the locking OCSPInitSingleton. I suggest ...
11 years ago (2009-12-03 20:05:27 UTC) #16
ukai
These are addressed in codereview.chromium.org/460067. http://codereview.chromium.org/449009/diff/6005/10002 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/449009/diff/6005/10002#newcode44 net/ocsp/nss_ocsp.cc:44: MessageLoop* io_thread() const { ...
11 years ago (2009-12-04 10:19:59 UTC) #17
wtc
LGTM. Thanks! I suggested some changes below. Please let me know if you have any ...
11 years ago (2009-12-04 22:01:05 UTC) #18
ukai
http://codereview.chromium.org/449009/diff/9003/9004 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/449009/diff/9003/9004#newcode155 net/ocsp/nss_ocsp.cc:155: io_loop_->PostTask( On 2009/12/04 22:01:05, wtc wrote: > It would ...
11 years ago (2009-12-07 04:25:47 UTC) #19
wtc
http://codereview.chromium.org/449009/diff/9005/9006 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/449009/diff/9005/9006#newcode228 net/ocsp/nss_ocsp.cc:228: virtual void WillDestroyCurrentMessageLoop() { It's a shame that the ...
11 years ago (2009-12-08 01:44:01 UTC) #20
ukai
11 years ago (2009-12-08 06:02:05 UTC) #21
http://codereview.chromium.org/449009/diff/9005/9006
File net/ocsp/nss_ocsp.cc (right):

http://codereview.chromium.org/449009/diff/9005/9006#newcode246
net/ocsp/nss_ocsp.cc:246: void CancelLocked() {
On 2009/12/08 01:44:01, wtc wrote:
> Please add a comment to document that we must call this method
> while holding lock_.

Sure. Added lock_.AssertAcquired() too.

> 
> You can add this comment to your other CL at
> http://codereview.chromium.org/460067
> 
> Thanks!

Powered by Google App Engine
This is Rietveld 408576698