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

Issue 7484065: secure proxy support in websocket (Closed)

Created:
9 years, 5 months ago by ukai
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

secure proxy support in websocket If an error is returned synchronously, next_state_ is not STATE_CLOSE. In such case, we should just close the socket stream with the error. BUG=83950 TEST=net_unittest --gtest_filter=SocketStreamTest.* pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94044

Patch Set 1 #

Total comments: 6

Patch Set 2 : don't set next_state_ to STATE_CLOSE when error in DoLoop #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -46 lines) Patch
M net/socket_stream/socket_stream.h View 3 chunks +5 lines, -0 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 6 chunks +91 lines, -46 lines 0 comments Download
M net/socket_stream/socket_stream_metrics.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 1 chunk +105 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ukai
I reverted the previous one because buildbot failed e.g. http://build.chromium.org/p/chromium/builders/Linux%20Tests%20%28Views%20dbg%29%283%29/builds/3528/steps/net_unittests/logs/stdio [ RUN ] SocketStreamTest.SecureProxyConnectError [1553:1553:0725/022223:90851953:WARNING:proxy_service.cc(456)] ...
9 years, 5 months ago (2011-07-25 09:43:41 UTC) #1
Yuta Kitamura
http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode920 net/socket_stream/socket_stream.cc:920: return socket_->Connect(&io_callback_); Can't you set STATE_CLOSE to next_state_ if ...
9 years, 5 months ago (2011-07-25 10:24:44 UTC) #2
ukai
http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode920 net/socket_stream/socket_stream.cc:920: return socket_->Connect(&io_callback_); On 2011/07/25 10:24:44, Yuta Kitamura wrote: > ...
9 years, 5 months ago (2011-07-25 10:29:59 UTC) #3
Yuta Kitamura
I'm not convinced about the change yet, but declaring "LGTM" because at least the code ...
9 years, 5 months ago (2011-07-25 10:44:48 UTC) #4
ukai
http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode920 net/socket_stream/socket_stream.cc:920: return socket_->Connect(&io_callback_); On 2011/07/25 10:44:48, Yuta Kitamura wrote: > ...
9 years, 5 months ago (2011-07-25 11:49:04 UTC) #5
ukai
http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode522 net/socket_stream/socket_stream.cc:522: next_state_ = STATE_CLOSE; hmm, we might not need this. ...
9 years, 5 months ago (2011-07-25 12:33:14 UTC) #6
Yuta Kitamura
http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode522 net/socket_stream/socket_stream.cc:522: next_state_ = STATE_CLOSE; I think that's better.
9 years, 5 months ago (2011-07-25 12:39:45 UTC) #7
ukai
On 2011/07/25 12:39:45, Yuta Kitamura wrote: > http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc > File net/socket_stream/socket_stream.cc (right): > > http://codereview.chromium.org/7484065/diff/1/net/socket_stream/socket_stream.cc#newcode522 ...
9 years, 5 months ago (2011-07-26 01:14:19 UTC) #8
Yuta Kitamura
LGTM.
9 years, 5 months ago (2011-07-26 03:18:21 UTC) #9
Takashi Toyoshima
9 years, 5 months ago (2011-07-26 03:21:52 UTC) #10
Sorry after LGTM.
Actually, statue transition in DoLoop was redundant.
But, I feel previous implementation was strong to human errors.

I think it's better to add DCHECK if you remove that transition.

Powered by Google App Engine
This is Rietveld 408576698