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

Issue 390011: Try to fix valgrind error in nss_ocsp.cc (Closed)

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

Description

Try to fix valgrind error in nss_ocsp.cc I think valgrind error would happen when IO thread was terminated before cert verification timed out. So, observe IO thread destruction and once IO thread destructed, don't post task to cancel the cert verication. BUG=23437 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=32150

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix wtc's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -11 lines) Patch
M net/ocsp/nss_ocsp.cc View 1 8 chunks +36 lines, -11 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ukai
11 years, 1 month ago (2009-11-11 08:50:59 UTC) #1
ukai
Reviewers: wtc, Description: Try to fix valgrind error in nss_ocsp.cc I think valgrind error would ...
11 years, 1 month ago (2009-11-11 08:51:17 UTC) #2
wtc
ukai: sorry about the delay in review. I've been busy this week. I need more ...
11 years, 1 month ago (2009-11-13 23:34:27 UTC) #3
wtc
The code is easier to understand than I expected. I have two comments below. I'd ...
11 years, 1 month ago (2009-11-13 23:42:05 UTC) #4
eroman
I don't think we should do this. This is just masking the bigger problem, which ...
11 years, 1 month ago (2009-11-14 00:12:57 UTC) #5
tesigoadondequieras_gmail.com
REMOVER ----- Original Message ----- From: <eroman@chromium.org> To: <ukai@chromium.org>; <wtc@chromium.org> Cc: <chromium-reviews@googlegroups.com> Sent: Friday, November ...
11 years, 1 month ago (2009-11-14 00:16:08 UTC) #6
eroman
> One thing I did notice while glancing the code, is during shutdown we are ...
11 years, 1 month ago (2009-11-14 00:27:46 UTC) #7
ukai
http://codereview.chromium.org/390011/diff/1/2 File net/ocsp/nss_ocsp.cc (right): http://codereview.chromium.org/390011/diff/1/2#newcode118 Line 118: io_loop_->PostTask( On 2009/11/13 23:42:05, wtc wrote: > Should ...
11 years, 1 month ago (2009-11-16 02:33:21 UTC) #8
ukai
On 2009/11/14 00:12:57, eroman wrote: > I don't think we should do this. > > ...
11 years, 1 month ago (2009-11-16 02:33:27 UTC) #9
eroman
11 years, 1 month ago (2009-11-16 20:01:23 UTC) #10
LGTM.

Initially I was skeptical about this, but I have warmed up to the idea of
registering a destruction observer.

In fact, I would like to do the same sort of thing to some of our other network
classes now :)

(Trying to make sure consumers delete the network objects before destroying the
IO thread has proved a losing battle).

Powered by Google App Engine
This is Rietveld 408576698