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

Issue 12033072: Include destination port for websocket throttling. (Closed)

Created:
7 years, 11 months ago by Adam Rice
Modified:
7 years, 10 months ago
Reviewers:
Takashi Toyoshima
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Include destination port for websocket throttling. Before this change, a pending connection to 127.0.0.1:80 would block a connection to 127.0.0.1:81 from starting. With this change, they are considered to be distinct for throttling purposes. Added a unit test to verify that pending connections to distinct ports do not block each other. Took the opportunity to simplify WebSocketThrottle a bit, using the IPEndPoint as the map key directly instead of creating a string to be the key. Modified the WebSocketJobSpdy[23]Tests to use port 80 both for the blocking connection and the connection being throttled. Previously the blocking connection used port 0, which meant that this change caused the throttling tests to fail. TEST=net_unittests, chrome BUG=172202 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181448

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix things caught by toyoshim. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -57 lines) Patch
M net/websockets/websocket_job_spdy2_unittest.cc View 1 chunk +5 lines, -1 line 0 comments Download
M net/websockets/websocket_job_spdy3_unittest.cc View 1 chunk +5 lines, -1 line 0 comments Download
M net/websockets/websocket_throttle.h View 1 3 chunks +6 lines, -3 lines 0 comments Download
M net/websockets/websocket_throttle.cc View 1 4 chunks +30 lines, -51 lines 0 comments Download
M net/websockets/websocket_throttle_unittest.cc View 2 chunks +47 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Adam Rice
Please take a look.
7 years, 11 months ago (2013-01-24 04:48:11 UTC) #1
Takashi Toyoshima
lgtm with nits https://codereview.chromium.org/12033072/diff/1/net/websockets/websocket_throttle.cc File net/websockets/websocket_throttle.cc (right): https://codereview.chromium.org/12033072/diff/1/net/websockets/websocket_throttle.cc#newcode6 net/websockets/websocket_throttle.cc:6: #include <algorithm> https://codereview.chromium.org/12033072/diff/1/net/websockets/websocket_throttle.h File net/websockets/websocket_throttle.h (right): ...
7 years, 11 months ago (2013-01-24 09:51:00 UTC) #2
Adam Rice
https://codereview.chromium.org/12033072/diff/1/net/websockets/websocket_throttle.cc File net/websockets/websocket_throttle.cc (right): https://codereview.chromium.org/12033072/diff/1/net/websockets/websocket_throttle.cc#newcode6 net/websockets/websocket_throttle.cc:6: On 2013/01/24 09:51:00, Takashi Toyoshima (chromium) wrote: > #include ...
7 years, 11 months ago (2013-01-25 04:07:36 UTC) #3
Takashi Toyoshima
LGTM.
7 years, 11 months ago (2013-01-25 05:36:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ricea@chromium.org/12033072/8
7 years, 10 months ago (2013-02-08 05:34:57 UTC) #5
commit-bot: I haz the power
7 years, 10 months ago (2013-02-08 07:38:08 UTC) #6
Message was sent while issue was closed.
Change committed as 181448

Powered by Google App Engine
This is Rietveld 408576698