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

Issue 326010: Delay OnClose actions. (Closed)

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

Description

Delay OnClose actions. If we reset delegate_ in OnClose, some pending tasks for DoOnReceivedData would fail to notify received data to the delegate. Don't reset delegate_ and socket_ in OnClose. Do it in DoOnClose instead. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30036

Patch Set 1 #

Total comments: 2

Patch Set 2 : add num_pending_tasks_ #

Total comments: 4

Patch Set 3 : socket_ = NULL in OnClose #

Patch Set 4 : s/there is/there are/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -21 lines) Patch
M webkit/tools/test_shell/simple_socket_stream_bridge.cc View 1 2 3 11 chunks +34 lines, -21 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
ukai
This is another bug that run_webkit_tests.sh fails in LayoutTests/websocket/tests/
11 years, 2 months ago (2009-10-23 11:41:07 UTC) #1
Yuzo
http://codereview.chromium.org/326010/diff/1/2 File webkit/tools/test_shell/simple_socket_stream_bridge.cc (right): http://codereview.chromium.org/326010/diff/1/2#newcode190 Line 190: CHECK(MessageLoop::current() == message_loop_); You might want to comment ...
11 years, 1 month ago (2009-10-26 02:07:58 UTC) #2
ukai
http://codereview.chromium.org/326010/diff/1/2 File webkit/tools/test_shell/simple_socket_stream_bridge.cc (right): http://codereview.chromium.org/326010/diff/1/2#newcode190 Line 190: CHECK(MessageLoop::current() == message_loop_); On 2009/10/26 02:07:59, Yuzo wrote: ...
11 years, 1 month ago (2009-10-26 04:50:51 UTC) #3
tyoshino (SeeGerritForStatus)
LGTM http://codereview.chromium.org/326010/diff/3001/4001 File webkit/tools/test_shell/simple_socket_stream_bridge.cc (right): http://codereview.chromium.org/326010/diff/3001/4001#newcode202 Line 202: // Don't handle OnClose if there is ...
11 years, 1 month ago (2009-10-26 05:09:03 UTC) #4
Yuzo
LGTM
11 years, 1 month ago (2009-10-26 05:14:15 UTC) #5
ukai
11 years, 1 month ago (2009-10-26 05:15:02 UTC) #6
http://codereview.chromium.org/326010/diff/3001/4001
File webkit/tools/test_shell/simple_socket_stream_bridge.cc (right):

http://codereview.chromium.org/326010/diff/3001/4001#newcode202
Line 202: // Don't handle OnClose if there is pending tasks.
On 2009/10/26 05:09:03, tyoshino wrote:
> there are

Done.

http://codereview.chromium.org/326010/diff/3001/4001#newcode206
Line 206: socket_ = NULL;
On 2009/10/26 05:09:03, tyoshino wrote:
> Maybe, it's better to nullify only socket_ in OnClose since it's used in IO
> thread.

Done.

Powered by Google App Engine
This is Rietveld 408576698