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

Issue 15039012: Add the ability to use AllowAddressReuse for UDP sockets. (Closed)

Created:
7 years, 7 months ago by Noam Samuel
Modified:
5 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add the ability to use AllowAddressReuse for UDP sockets. Currently, UDP sockets can only bind to unused ports. However, sockets that are joined to multicast groups may want to bind to ports that are already in use (for example, a v2 app that uses the same multicast protocol as a system daemon). For this, I added the AllowAddressReuse API, similar to the one in the underlying UDPSocket object. This must be called before binding/connecting, and will return an error otherwise. It returns an error for TCP sockets explaining that the call is not necessary. BUG=238819

Patch Set 1 : #

Patch Set 2 : Merged with master #

Total comments: 13

Patch Set 3 : #

Patch Set 4 : Merge with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -12 lines) Patch
M chrome/browser/extensions/api/socket/socket_api.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 3 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_histogram_value.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/socket.idl View 1 2 5 chunks +20 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/api_test/socket/api/background.js View 2 chunks +55 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Noam Samuel
Hey Mike, Matt, Could you please review this CL? Thanks, Noam.
7 years, 7 months ago (2013-05-07 21:50:23 UTC) #1
miket_OOO
LGTM and thanks! https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc File chrome/browser/extensions/api/socket/socket_api.cc (right): https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc#newcode48 chrome/browser/extensions/api/socket/socket_api.cc:48: " address reuse by default."; I ...
7 years, 7 months ago (2013-05-24 20:53:48 UTC) #2
mmenke
https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc File chrome/browser/extensions/api/socket/socket_api.cc (right): https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc#newcode895 chrome/browser/extensions/api/socket/socket_api.cc:895: : params_(NULL) {} nit: Should be 4-space indent. https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc#newcode898 ...
7 years, 7 months ago (2013-05-24 21:11:59 UTC) #3
Noam Samuel
https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc File chrome/browser/extensions/api/socket/socket_api.cc (right): https://codereview.chromium.org/15039012/diff/4001/chrome/browser/extensions/api/socket/socket_api.cc#newcode48 chrome/browser/extensions/api/socket/socket_api.cc:48: " address reuse by default."; On 2013/05/24 20:53:48, miket ...
7 years, 7 months ago (2013-05-24 21:43:53 UTC) #4
mmenke
LGTM
7 years, 6 months ago (2013-05-28 15:47:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/15039012/24001
7 years, 6 months ago (2013-05-28 17:43:05 UTC) #6
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-05-28 17:43:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noamsml@chromium.org/15039012/31001
7 years, 6 months ago (2013-05-29 21:44:36 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=132884
7 years, 6 months ago (2013-05-30 00:40:40 UTC) #9
Noam Samuel
On 2013/05/30 00:40:40, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 5 months ago (2013-07-23 16:48:12 UTC) #10
zbrusso
5 years, 6 months ago (2015-06-10 21:32:13 UTC) #11
Message was sent while issue was closed.
On 2013/07/23 16:48:12, Noam Samuel wrote:
> On 2013/05/30 00:40:40, I haz the power (commit-bot) wrote:
> > Retried try job too often on mac_rel for step(s) browser_tests
> >
>
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...
> 
> For posterity and/or later return: The reason this patch didn't come through
is
> that SO_REUSEADDR doesn't work in quite the same way on Mac OSX, where you're
> supposed to use SO_REUSEPORT which has subtly different semantics. Given the
> subtlety of it, I'm putting it off until I'm a bit less busy with Privet
stuff.
> When I do it, I'll submit it as a separate patch for a new review, so I'm
> closing this issue.

have you ever finished?

Powered by Google App Engine
This is Rietveld 408576698