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

Issue 127463003: Completely disable use of bind() with pseudo-random port selection on Windows. (Closed)

Created:
6 years, 11 months ago by jar (doing other things)
Modified:
6 years, 11 months ago
Reviewers:
wtc, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

On Windows, completely disable use of bind() with pseudo-random port selection. I'll land this on the tip-of-tree, and then revert it. We'll then apply it to the dev branch so that there is no chance of accidentally getting security dialogs on Windows. This should reduce the bug to P2, and allow a more complete resolution of the bug. r=rch BUG=329255 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243858

Patch Set 1 #

Patch Set 2 : Only disable explicit port selection on Windows. #

Patch Set 3 : cleanup comment #

Total comments: 1

Patch Set 4 : Let Windows tests ignore lack of use of bind() #

Total comments: 3

Patch Set 5 : On Windows, avoid "port selection" in Stable or Beta channels automatically #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -6 lines) Patch
M chrome/browser/io_thread.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 4 chunks +31 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M net/quic/quic_stream_factory.h View 1 2 3 4 2 chunks +7 lines, -1 line 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 4 4 chunks +12 lines, -3 lines 0 comments Download
M net/quic/quic_stream_factory_test.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
jar (doing other things)
Ryan/WanTeh: Could either of you review this. It is minimal, and this is a stop-gap ...
6 years, 11 months ago (2014-01-08 17:15:00 UTC) #1
wtc
Patch set 3 LGTM.
6 years, 11 months ago (2014-01-08 17:40:13 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/127463003/90001
6 years, 11 months ago (2014-01-08 17:42:26 UTC) #3
Ryan Hamilton
https://codereview.chromium.org/127463003/diff/90001/net/quic/quic_stream_factory.cc File net/quic/quic_stream_factory.cc (right): https://codereview.chromium.org/127463003/diff/90001/net/quic/quic_stream_factory.cc#newcode517 net/quic/quic_stream_factory.cc:517: bind_type = DatagramSocket::DEFAULT_BIND; This change *should* break the test ...
6 years, 11 months ago (2014-01-08 17:53:41 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=243450
6 years, 11 months ago (2014-01-08 19:43:51 UTC) #5
jar (doing other things)
PTAL (neutered Window's testing of our use of bind())
6 years, 11 months ago (2014-01-08 22:17:11 UTC) #6
Ryan Hamilton
lgtm https://codereview.chromium.org/127463003/diff/380001/net/quic/quic_stream_factory.cc File net/quic/quic_stream_factory.cc (right): https://codereview.chromium.org/127463003/diff/380001/net/quic/quic_stream_factory.cc#newcode517 net/quic/quic_stream_factory.cc:517: bind_type = DatagramSocket::DEFAULT_BIND; nit: i wonder if it ...
6 years, 11 months ago (2014-01-08 22:21:52 UTC) #7
wtc
Patch set 4 LGTM. https://chromiumcodereview.appspot.com/127463003/diff/380001/net/quic/quic_stream_factory.cc File net/quic/quic_stream_factory.cc (right): https://chromiumcodereview.appspot.com/127463003/diff/380001/net/quic/quic_stream_factory.cc#newcode534 net/quic/quic_stream_factory.cc:534: #endif I would just do ...
6 years, 11 months ago (2014-01-08 22:36:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jar@chromium.org/127463003/380001
6 years, 11 months ago (2014-01-08 22:38:34 UTC) #9
commit-bot: I haz the power
Change committed as 243858
6 years, 11 months ago (2014-01-09 12:11:19 UTC) #10
jar (doing other things)
6 years, 11 months ago (2014-01-09 20:54:41 UTC) #11
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/132603002/ by jar@chromium.org.

The reason for reverting is: Reverting on Canary to maintain port selection
there.  Will land on Dev branch..

Powered by Google App Engine
This is Rietveld 408576698