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

Issue 1307083002: TCPConnection can never be deteted if they fail to connect (Closed)

Created:
5 years, 4 months ago by guoweis_webrtc
Modified:
5 years, 4 months ago
Reviewers:
juberti1, pthatcher1
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

TCPConnection can never be deteted if they fail to connect. Since the TCPConnection has never been connected, they are not scheduled for ping hence will never be detected. Also fix the case when reconnect fails, as it has become READABLE before, it also will not be deleted. BUG=webrtc:4936 R=pthatcher@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1eb87c7d94916a6e5641bfbbc8df37527712e4ca

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -83 lines) Patch
M webrtc/p2p/base/port_unittest.cc View 1 2 3 28 chunks +93 lines, -55 lines 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 2 3 5 chunks +37 lines, -28 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
guoweis_webrtc
Please take a look before I start the test cases.
5 years, 4 months ago (2015-08-22 00:13:34 UTC) #2
pthatcher1
https://codereview.webrtc.org/1307083002/diff/40001/webrtc/p2p/base/tcpport.cc File webrtc/p2p/base/tcpport.cc (right): https://codereview.webrtc.org/1307083002/diff/40001/webrtc/p2p/base/tcpport.cc#newcode382 webrtc/p2p/base/tcpport.cc:382: // Destroy() to ensure this connection doesn't linger. It ...
5 years, 4 months ago (2015-08-22 05:05:22 UTC) #4
guoweis_webrtc
PTAL. Need to add couple test cases. 1. the case where Chrome calls OnClose without ...
5 years, 4 months ago (2015-08-22 05:29:50 UTC) #5
guoweis_webrtc
On 2015/08/22 05:29:50, guoweis wrote: > PTAL. > > Need to add couple test cases. ...
5 years, 4 months ago (2015-08-24 14:11:02 UTC) #6
pthatcher1
On 2015/08/24 14:11:02, guoweis wrote: > On 2015/08/22 05:29:50, guoweis wrote: > > PTAL. > ...
5 years, 4 months ago (2015-08-24 18:58:20 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307083002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307083002/140001
5 years, 4 months ago (2015-08-25 02:58:47 UTC) #9
guoweis_webrtc
PTAL. Added test cases.
5 years, 4 months ago (2015-08-25 03:02:11 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_drmemory_light on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_drmemory_light/builds/6181)
5 years, 4 months ago (2015-08-25 03:20:11 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307083002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307083002/140001
5 years, 4 months ago (2015-08-25 03:51:32 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307083002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307083002/170001
5 years, 4 months ago (2015-08-25 04:26:44 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 4 months ago (2015-08-25 06:26:56 UTC) #24
pthatcher1
lgtm, assuming we fix the comments https://codereview.webrtc.org/1307083002/diff/170001/webrtc/p2p/base/port_unittest.cc File webrtc/p2p/base/port_unittest.cc (right): https://codereview.webrtc.org/1307083002/diff/170001/webrtc/p2p/base/port_unittest.cc#newcode603 webrtc/p2p/base/port_unittest.cc:603: // Ensure redundant ...
5 years, 4 months ago (2015-08-25 17:58:41 UTC) #25
guoweis_webrtc
Committed patchset #4 (id:190001) manually as 1eb87c7d94916a6e5641bfbbc8df37527712e4ca (presubmit successful).
5 years, 4 months ago (2015-08-25 18:03:24 UTC) #26
guoweis_webrtc
5 years, 4 months ago (2015-08-25 18:04:14 UTC) #27
Message was sent while issue was closed.
landed.

https://codereview.webrtc.org/1307083002/diff/170001/webrtc/p2p/base/port_uni...
File webrtc/p2p/base/port_unittest.cc (right):

https://codereview.webrtc.org/1307083002/diff/170001/webrtc/p2p/base/port_uni...
webrtc/p2p/base/port_unittest.cc:603: // Ensure redundant of OnClose on
TcpConnection won't break tcp
On 2015/08/25 17:58:41, pthatcher1 wrote:
> redundant of OnClose on TcpConnection => redundant SignalClose events

Done.

https://codereview.webrtc.org/1307083002/diff/170001/webrtc/p2p/base/port_uni...
webrtc/p2p/base/port_unittest.cc:605: // during reconnection.
On 2015/08/25 17:58:41, pthatcher1 wrote:
> Chromium calls OnClose or fires SignalClose?  OnClose is private, right?

Done.

Powered by Google App Engine
This is Rietveld 408576698