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

Issue 1452903006: Keep listening if "accept" returns an invalid socket. (Closed)

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

Description

Keep listening if "accept" returns an invalid socket. There is an issue in PhysicalSocket::Accept where the flag to continue listening is not set in "enabled_events_" if "accept" returns an error. This CL fixes this (initial idea by silviu.cpp@gmail.com). BUG=webrtc:2030 Committed: https://crrev.com/095ae15d6b9ff60357b44ed6f4997754079eff2e Cr-Commit-Position: refs/heads/master@{#11080}

Patch Set 1 #

Patch Set 2 : Added unittest #

Total comments: 1

Patch Set 3 : Renamed Mock* to Fake* #

Patch Set 4 : Fix chromium-style errors. #

Patch Set 5 : Fix chromium-style errors. #

Patch Set 6 : Also implement CreateAsyncSocket with single argument in FakePhysicalSocketServer #

Patch Set 7 : First try at fixing Windows trybots. #

Patch Set 8 : Remove duplicate SocketDispatcher code. #

Total comments: 3

Patch Set 9 : Re-add duplicate code removed in previous patch set. #

Patch Set 10 : Fixed presubmit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+848 lines, -592 lines) Patch
M webrtc/base/physicalsocketserver.h View 1 2 3 4 5 6 2 chunks +102 lines, -0 lines 0 comments Download
M webrtc/base/physicalsocketserver.cc View 1 2 3 4 5 6 7 8 9 10 chunks +576 lines, -587 lines 0 comments Download
M webrtc/base/physicalsocketserver_unittest.cc View 1 2 3 4 5 2 chunks +159 lines, -0 lines 0 comments Download
M webrtc/base/socket_unittest.h View 1 3 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 45 (14 generated)
joachim
Ptal
5 years, 1 month ago (2015-11-17 23:20:53 UTC) #2
pthatcher
On 2015/11/17 23:20:53, joachim wrote: > Ptal I don't quite understand the bug or the ...
5 years, 1 month ago (2015-11-19 22:41:52 UTC) #3
joachim
On 2015/11/19 22:41:52, pthatcher wrote: > On 2015/11/17 23:20:53, joachim wrote: > > Ptal > ...
5 years, 1 month ago (2015-11-19 22:51:27 UTC) #4
pthatcher1
OK, that makes sense now. Could you explain something along these lines with a comment ...
5 years, 1 month ago (2015-11-19 23:16:26 UTC) #5
joachim
On 2015/11/19 23:16:26, pthatcher1 wrote: > OK, that makes sense now. > > Could you ...
5 years, 1 month ago (2015-11-19 23:55:29 UTC) #6
pthatcher1
Hmmm... that sound painful. Can you give it a try? If it's too painful we ...
5 years, 1 month ago (2015-11-20 00:05:36 UTC) #7
joachim
On 2015/11/20 00:05:36, pthatcher1 wrote: > Hmmm... that sound painful. Can you give it a ...
5 years, 1 month ago (2015-11-20 00:23:47 UTC) #8
joachim
As expected, the diff looks rather large, however I only changed a few things: - ...
5 years, 1 month ago (2015-11-20 23:14:26 UTC) #9
joachim
On 2015/11/20 23:14:26, joachim wrote: > As expected, the diff looks rather large, however I ...
5 years ago (2015-11-25 22:18:00 UTC) #11
pthatcher1
lgtm But please change "mock" to "fake". Oh, and sorry the review took so long. ...
5 years ago (2015-12-03 22:56:33 UTC) #12
joachim
All renamed (also rebased to some newer master).
5 years ago (2015-12-06 20:02:24 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452903006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452903006/40001
5 years ago (2015-12-06 20:02:57 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_x64_gn_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_x64_gn_dbg/builds/5748) mac_x64_gn_rel on ...
5 years ago (2015-12-06 20:04:50 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452903006/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452903006/60001
5 years ago (2015-12-06 20:09:47 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/9598)
5 years ago (2015-12-06 20:11:57 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452903006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452903006/80001
5 years ago (2015-12-06 20:15:11 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_rel/builds/9571) win_compile_dbg on ...
5 years ago (2015-12-06 20:17:16 UTC) #25
joachim
Looks like there is more work required to make this work on Windows (i.e. extract ...
5 years ago (2015-12-06 20:50:00 UTC) #26
joachim
Ptal Changes since your review: - The SocketDispatcher class in the header also contains the ...
5 years ago (2015-12-07 21:15:30 UTC) #27
pthatcher1
I appreciate that you're trying to reduce code duplication, but I have two concerns: 1. ...
5 years ago (2015-12-08 20:20:43 UTC) #28
joachim
I understand your concerns and reverted the deduplication from the previous patch set. So the ...
5 years ago (2015-12-08 21:58:56 UTC) #29
joachim
On 2015/12/08 21:58:56, joachim wrote: > I understand your concerns and reverted the deduplication from ...
5 years ago (2015-12-17 22:47:07 UTC) #30
pthatcher1
lgtm
5 years ago (2015-12-17 23:40:49 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452903006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452903006/160001
5 years ago (2015-12-17 23:41:19 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/2488)
5 years ago (2015-12-17 23:46:18 UTC) #35
joachim
On 2015/12/17 23:40:49, pthatcher1 wrote: > lgtm Thanks and sorry for bothering you again on ...
5 years ago (2015-12-18 00:26:30 UTC) #36
pthatcher1
You can put me: TODO(pthatcher). And don't apologize for being diligent about getting work done. ...
5 years ago (2015-12-18 02:30:26 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1452903006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1452903006/180001
5 years ago (2015-12-18 08:45:13 UTC) #40
joachim
On 2015/12/18 02:30:26, pthatcher1 wrote: > You can put me: TODO(pthatcher). Changed, thanks. > And ...
5 years ago (2015-12-18 08:46:15 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-18 09:40:00 UTC) #43
commit-bot: I haz the power
5 years ago (2015-12-18 09:40:11 UTC) #45
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/095ae15d6b9ff60357b44ed6f4997754079eff2e
Cr-Commit-Position: refs/heads/master@{#11080}

Powered by Google App Engine
This is Rietveld 408576698