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

Issue 759923003: Detect situation when there is no missing send completion signal in P2PSocket implementation. (Closed)

Created:
6 years ago by guoweis_left_chromium
Modified:
5 years, 11 months ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added a CHECK assert which will cause crash when missing send completion signal is detected. 1. change in_fligth_packets_size_ to not only tracking size but also packet_id 2. pass back the packet_id in the path of completion signal such that it could be matched with what's been tracked in in_flight_packets_size BUG=427555 Committed: https://crrev.com/467bab46baa301ea4d21097c3214f44fd184871a Cr-Commit-Position: refs/heads/master@{#310844}

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Total comments: 20

Patch Set 7 : #

Total comments: 10

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -62 lines) Patch
M content/browser/renderer_host/p2p/socket_host_tcp.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/p2p/socket_host_udp.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/common/p2p_messages.h View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M content/common/p2p_socket_type.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/p2p/ipc_socket_factory.cc View 1 2 3 4 5 6 7 9 chunks +45 lines, -14 lines 0 comments Download
M content/renderer/p2p/socket_client.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -8 lines 0 comments Download
M content/renderer/p2p/socket_client_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/p2p/socket_client_impl.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -11 lines 0 comments Download
M content/renderer/p2p/socket_client_impl.cc View 1 2 3 4 5 6 7 3 chunks +26 lines, -21 lines 0 comments Download
M content/renderer/p2p/socket_dispatcher.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/p2p/socket_dispatcher.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 51 (23 generated)
guoweis_left_chromium
1. change in_fligth_packets_size_ to not only tracking size but also packet_id 2. pass back the ...
6 years ago (2014-12-02 19:17:50 UTC) #9
guoweis_left_chromium
+juberti@chromium as well.
6 years ago (2014-12-02 19:19:14 UTC) #11
guoweis_left_chromium
+rkaplow for histograms.xml
6 years ago (2014-12-02 20:57:31 UTC) #13
rkaplow
https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc#newcode653 content/renderer/p2p/ipc_socket_factory.cc:653: // rely on the destructor since if user closes ...
6 years ago (2014-12-03 22:30:27 UTC) #15
guoweis_left_chromium
On 2014/12/03 22:30:27, rkaplow wrote: > https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc > File content/renderer/p2p/ipc_socket_factory.cc (right): > > https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc#newcode653 > ...
6 years ago (2014-12-08 21:45:39 UTC) #18
guoweis_left_chromium
PTAL. https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/759923003/diff/180001/content/renderer/p2p/ipc_socket_factory.cc#newcode653 content/renderer/p2p/ipc_socket_factory.cc:653: // rely on the destructor since if user ...
6 years ago (2014-12-08 21:46:08 UTC) #19
rkaplow
histogram part seems good to me. I'm not actually an owner of histograms.xml, I can ...
6 years ago (2014-12-09 20:19:37 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/759923003/diff/240001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/759923003/diff/240001/tools/metrics/histograms/histograms.xml#newcode40194 tools/metrics/histograms/histograms.xml:40194: +<histogram name="WebRTC.ApplicationSocketMismatchPacketsDetected"> Please specify an enum="" tag here. It ...
6 years ago (2014-12-09 20:22:55 UTC) #22
guoweis_left_chromium
PTAL https://codereview.chromium.org/759923003/diff/240001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/759923003/diff/240001/content/renderer/p2p/ipc_socket_factory.cc#newcode653 content/renderer/p2p/ipc_socket_factory.cc:653: // rely on the destructor since if a ...
6 years ago (2014-12-09 23:54:45 UTC) #23
Alexei Svitkine (slow)
lgtm
6 years ago (2014-12-10 16:12:38 UTC) #24
guoweis_left_chromium
Sergey, could you take a look at this change? This is to rule out any ...
6 years ago (2014-12-15 23:50:19 UTC) #26
Sergey Ulanov
https://codereview.chromium.org/759923003/diff/260001/content/browser/renderer_host/p2p/socket_host_udp.cc File content/browser/renderer_host/p2p/socket_host_udp.cc (right): https://codereview.chromium.org/759923003/diff/260001/content/browser/renderer_host/p2p/socket_host_udp.cc#newcode346 content/browser/renderer_host/p2p/socket_host_udp.cc:346: id_, P2PSendPacketMetrics(packet_id /* packet_id */))); Don't need the comment. ...
6 years ago (2014-12-16 00:21:43 UTC) #27
guoweis_left_chromium
PTAL. https://codereview.chromium.org/759923003/diff/260001/content/browser/renderer_host/p2p/socket_host_udp.cc File content/browser/renderer_host/p2p/socket_host_udp.cc (right): https://codereview.chromium.org/759923003/diff/260001/content/browser/renderer_host/p2p/socket_host_udp.cc#newcode346 content/browser/renderer_host/p2p/socket_host_udp.cc:346: id_, P2PSendPacketMetrics(packet_id /* packet_id */))); On 2014/12/16 00:21:43, ...
6 years ago (2014-12-16 23:12:33 UTC) #28
Sergey Ulanov
https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h File content/common/p2p_socket_type.h (right): https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h#newcode58 content/common/p2p_socket_type.h:58: uint64 packet_id; please use uint64_t instead of uint64 here ...
6 years ago (2014-12-17 20:05:30 UTC) #29
guoweis_left_chromium
On 2014/12/17 20:05:30, Sergey Ulanov wrote: > https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h > File content/common/p2p_socket_type.h (right): > > https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h#newcode58 ...
6 years ago (2014-12-22 21:35:35 UTC) #33
guoweis_left_chromium
publish the comments. https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h File content/common/p2p_socket_type.h (right): https://codereview.chromium.org/759923003/diff/280001/content/common/p2p_socket_type.h#newcode58 content/common/p2p_socket_type.h:58: uint64 packet_id; On 2014/12/17 20:05:30, Sergey ...
6 years ago (2014-12-22 21:41:47 UTC) #34
Sergey Ulanov
lgtm when my comments are addressed https://codereview.chromium.org/759923003/diff/360001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc (right): https://codereview.chromium.org/759923003/diff/360001/content/renderer/p2p/ipc_socket_factory.cc#newcode120 content/renderer/p2p/ipc_socket_factory.cc:120: nit: Don't need ...
6 years ago (2014-12-23 01:11:02 UTC) #35
guoweis_left_chromium
brettw@chromium.org: Please review changes in content/common/p2p_socket_type.h wfh@chromium.org: Please review changes in content/common/p2p_messages.h https://codereview.chromium.org/759923003/diff/360001/content/renderer/p2p/ipc_socket_factory.cc File content/renderer/p2p/ipc_socket_factory.cc ...
6 years ago (2014-12-23 18:53:16 UTC) #37
guoweis_left_chromium
all comments from sergeyu@ addressed. https://codereview.chromium.org/759923003/diff/360001/content/renderer/p2p/socket_client.h File content/renderer/p2p/socket_client.h (right): https://codereview.chromium.org/759923003/diff/360001/content/renderer/p2p/socket_client.h#newcode41 content/renderer/p2p/socket_client.h:41: virtual uint64_t SendWithDscp(const net::IPEndPoint& ...
6 years ago (2014-12-23 19:08:32 UTC) #39
Will Harris
ipc content/common/p2p_messages.h lgtm
6 years ago (2014-12-23 19:55:17 UTC) #40
guoweis_left_chromium
jln, please owner review p2p_socket_type.h
6 years ago (2014-12-23 21:49:37 UTC) #42
jln (very slow on Chromium)
On 2014/12/23 21:49:37, guoweis_chromium wrote: > jln, please owner review p2p_socket_type.h I'm not a correct ...
5 years, 11 months ago (2015-01-05 18:39:22 UTC) #43
Will Harris
On 2015/01/05 18:39:22, jln (OOO til 5th) wrote: > On 2014/12/23 21:49:37, guoweis_chromium wrote: > ...
5 years, 11 months ago (2015-01-05 20:20:43 UTC) #44
guoweis_left_chromium
avi@, could you rubber lgtm on p2p_socket_types.h? It has been reviewed by wfh@ for security ...
5 years, 11 months ago (2015-01-05 20:46:13 UTC) #46
Avi (use Gerrit)
On 2015/01/05 20:46:13, guoweis_chromium wrote: > avi@, could you rubber lgtm on p2p_socket_types.h? It has ...
5 years, 11 months ago (2015-01-05 20:48:56 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/759923003/380001
5 years, 11 months ago (2015-01-09 19:17:34 UTC) #49
commit-bot: I haz the power
Committed patchset #8 (id:380001)
5 years, 11 months ago (2015-01-09 20:27:43 UTC) #50
commit-bot: I haz the power
5 years, 11 months ago (2015-01-09 20:28:40 UTC) #51
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/467bab46baa301ea4d21097c3214f44fd184871a
Cr-Commit-Position: refs/heads/master@{#310844}

Powered by Google App Engine
This is Rietveld 408576698