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

Issue 786503002: Fix for issue 439560: connect to TURN servers through proxies with auth. (Closed)

Created:
6 years ago by dbkr
Modified:
6 years ago
Reviewers:
jiayl, Ryan Sleevi
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix for issue 439560: connect to TURN servers through proxies with auth. Use the network session from the request context rather than creating a new one. This means jingle connections get the auth cache etc. and can therefore use proxies that require authentication to connect to TURN servers. Also add myself to the AUTHORS file as requsted in the guidelines for contributing code. I can't see any obvious reason why jingle would not use the same network session here and there were no comments entered to explain why this was the case, but I have little experience of the chromium codebase. BUG=439560

Patch Set 1 : Ammended patch set removing code rather than commenting it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -41 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 2 chunks +2 lines, -41 lines 0 comments Download

Messages

Total messages: 8 (5 generated)
jiayl
This is similar to the early patches in https://codereview.chromium.org/414523005/, which were turned down by the ...
6 years ago (2014-12-08 19:11:47 UTC) #6
Ryan Sleevi
Yeah, gonna Not LGTM this, unfortunately. The issue here is that sharing the network session ...
6 years ago (2014-12-09 15:39:29 UTC) #7
dbkr
6 years ago (2014-12-09 16:06:43 UTC) #8
On 2014/12/09 15:39:29, Ryan Sleevi wrote:
> Yeah, gonna Not LGTM this, unfortunately.
> 
> The issue here is that sharing the network session shares the socket pools,
and
> sharing the socket pools creates the potential for jingle-initiated sockets to
> be used with Chrome-initiated sockets.
> 
> The Chrome-initiated sockets (Blink-initiated sockets?) have interactive user
> contexts, extensions, and a variety of other things that can affect how a
socket
> is established. Jingle lacks all of these.
> 
> The short story is that any time you're establishing a socket outside the
scope
> of the full UI context and ResourceLoader layer, then you shouldn't be using
the
> HttpNetworkSession or its members.
> 
> This is why Jingle (and all other subcomponents that aren't part of the
Resource
> Loader flow) initialize their own network sessions.
> 
> So I think we'll have to continue on the bug, and more work is needed (e.g. to
> either wire up Jingle connections through the appropriate layers,
simultaneously
> solving the pool connection limits) or to work on better support for proxies
in
> the Jingle layers (wiring up UI?)

Sure, understood. I did wonder if there was a reason why the jingle glue made
its
own socket objects here, and this sounds like a good reason.

Powered by Google App Engine
This is Rietveld 408576698