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

Issue 10668018: Websocket should fire 'error' event if no server available (Closed)

Created:
8 years, 6 months ago by Li Yin
Modified:
7 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, pam+watch_chromium.org, jochen+watch-content_chromium.org, Takashi Toyoshima, tkent
Visibility:
Public.

Description

Websocket should fire 'error' event if no server available Implement OnError virtual function, when network is down, OnError can be invoked. Send error code to render process from browser process through IPC. This patch depends on Blink side patch which can be found from https://codereview.chromium.org/14071008/ BUG=128057 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196728 R=avi@chromium.org, jln@chromium.org, kinuko@chromium.org, tyoshino@chromium.org, yutak@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197854

Patch Set 1 #

Patch Set 2 : did some rebased work #

Total comments: 12

Patch Set 3 : Fix some code styles issue #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : Rebase because of changed AUTHORS file #

Patch Set 6 : Rebase because AUTHORS file is changed. #

Total comments: 2

Patch Set 7 : Rebase because of changed AUTHORS #

Patch Set 8 : Rebase because of changed AUTHORS #

Patch Set 9 : Rebased by tyoshino #

Total comments: 2

Patch Set 10 : Fix net unit test issue #

Patch Set 11 : Fixed test failures (tyoshino) #

Patch Set 12 : Split change that can be made later #

Patch Set 13 : Upload Li' #

Patch Set 14 : Reupload Li's patch set 10 #

Patch Set 15 : Rebase because AUTHORS file is changed #

Patch Set 16 : For reland (tyoshino) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -11 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/socket_stream_dispatcher_host.h View 1 12 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/socket_stream_dispatcher_host.cc View 1 2 12 1 chunk +17 lines, -0 lines 0 comments Download
M content/browser/renderer_host/socket_stream_host.h View 1 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/socket_stream_host.cc View 1 12 1 chunk +2 lines, -1 line 0 comments Download
M content/common/socket_stream_dispatcher.h View 1 12 1 chunk +1 line, -0 lines 0 comments Download
M content/common/socket_stream_dispatcher.cc View 1 2 12 5 chunks +22 lines, -0 lines 0 comments Download
M content/common/socket_stream_messages.h View 1 2 3 12 1 chunk +5 lines, -0 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 1 2 3 4 5 6 7 8 9 11 12 13 4 chunks +4 lines, -8 lines 0 comments Download
M webkit/glue/websocketstreamhandle_delegate.h View 1 2 3 12 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/glue/websocketstreamhandle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +16 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_socket_stream_bridge.cc View 1 2 12 5 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
Li Yin
When the network is down, chromium will trigger OnError callback before OnClose callback. That is ...
8 years, 6 months ago (2012-06-25 06:41:39 UTC) #1
Yuta Kitamura
LGTM (you still need LGTMs from other OWNERs of each module) Please keep in mind ...
8 years, 5 months ago (2012-07-13 05:44:27 UTC) #2
Li Yin
On 2012/07/13 05:44:27, Yuta Kitamura wrote: > LGTM (you still need LGTMs from other OWNERs ...
8 years, 5 months ago (2012-07-16 05:54:04 UTC) #3
Li Yin
On 2012/07/13 05:44:27, Yuta Kitamura wrote: > LGTM (you still need LGTMs from other OWNERs ...
7 years, 8 months ago (2013-04-15 03:01:39 UTC) #4
tyoshino (SeeGerritForStatus)
On 2013/04/15 03:01:39, Li Yin wrote: > On 2012/07/13 05:44:27, Yuta Kitamura wrote: > > ...
7 years, 8 months ago (2013-04-15 03:44:58 UTC) #5
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc File content/browser/renderer_host/socket_stream_dispatcher_host.cc (right): https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc#newcode111 content/browser/renderer_host/socket_stream_dispatcher_host.cc:111: } Not to surprise reader, please write some short ...
7 years, 8 months ago (2013-04-15 14:23:28 UTC) #6
Li Yin
https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc File content/browser/renderer_host/socket_stream_dispatcher_host.cc (right): https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc#newcode111 content/browser/renderer_host/socket_stream_dispatcher_host.cc:111: } On 2013/04/15 14:23:28, tyoshino wrote: > Not to ...
7 years, 8 months ago (2013-04-16 12:07:37 UTC) #7
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc File content/browser/renderer_host/socket_stream_dispatcher_host.cc (right): https://codereview.chromium.org/10668018/diff/5001/content/browser/renderer_host/socket_stream_dispatcher_host.cc#newcode111 content/browser/renderer_host/socket_stream_dispatcher_host.cc:111: } On 2013/04/16 12:07:37, Li Yin wrote: > On ...
7 years, 8 months ago (2013-04-17 08:15:49 UTC) #8
Li Yin
Hi tyoshino, All the reviewed comments have been fixed already, do you thinks it is ...
7 years, 8 months ago (2013-04-23 05:22:59 UTC) #9
tyoshino (SeeGerritForStatus)
LGTM kinuko, could you please do OWNER review for webkit/? jam, could you please do ...
7 years, 8 months ago (2013-04-23 09:06:33 UTC) #10
kinuko
webkit/ lgtm
7 years, 8 months ago (2013-04-23 10:15:33 UTC) #11
kinuko
(leftover nit comment) https://codereview.chromium.org/10668018/diff/29001/webkit/glue/websocketstreamhandle_impl.cc File webkit/glue/websocketstreamhandle_impl.cc (right): https://codereview.chromium.org/10668018/diff/29001/webkit/glue/websocketstreamhandle_impl.cc#newcode156 webkit/glue/websocketstreamhandle_impl.cc:156: VLOG(1) << "DidFail"; nit: is this ...
7 years, 8 months ago (2013-04-23 10:15:47 UTC) #12
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/10668018/diff/29001/webkit/glue/websocketstreamhandle_impl.cc File webkit/glue/websocketstreamhandle_impl.cc (right): https://codereview.chromium.org/10668018/diff/29001/webkit/glue/websocketstreamhandle_impl.cc#newcode156 webkit/glue/websocketstreamhandle_impl.cc:156: VLOG(1) << "DidFail"; On 2013/04/23 10:15:47, kinuko wrote: > ...
7 years, 8 months ago (2013-04-23 16:04:07 UTC) #13
jam
redirecting to Avi
7 years, 8 months ago (2013-04-23 17:14:41 UTC) #14
Avi (use Gerrit)
content lgtm
7 years, 8 months ago (2013-04-23 17:47:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/29001
7 years, 8 months ago (2013-04-24 00:40:49 UTC) #16
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-24 00:40:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/42001
7 years, 8 months ago (2013-04-24 01:04:24 UTC) #18
commit-bot: I haz the power
Presubmit check for 10668018-42001 failed and returned exit status 1. INFO:root:Found 12 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-24 01:04:34 UTC) #19
tyoshino (SeeGerritForStatus)
+tsepez Hi tsepez, Could you please take a look at the change on content/common/socket_stream_messages.h ? ...
7 years, 8 months ago (2013-04-24 02:05:33 UTC) #20
tyoshino (SeeGerritForStatus)
Oops. I added cevans@ but was talking to tsepez@ in the mail. Hi cevans, Could ...
7 years, 8 months ago (2013-04-24 02:09:06 UTC) #21
Li Yin
+jln, Hi Julien, could you please review content/common/socket_stream_messages.h? Thanks in advance.
7 years, 8 months ago (2013-04-26 00:43:56 UTC) #22
jln (very slow on Chromium)
socket_stream_messages.h lgtm
7 years, 8 months ago (2013-04-26 01:03:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/42001
7 years, 8 months ago (2013-04-26 01:24:36 UTC) #24
commit-bot: I haz the power
Failed to apply patch for AUTHORS: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-26 01:24:40 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/52001
7 years, 8 months ago (2013-04-26 01:29:56 UTC) #26
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=121009
7 years, 8 months ago (2013-04-26 02:07:40 UTC) #27
tyoshino (SeeGerritForStatus)
Checked results. Looks ok to commit. I'll commit it manually.
7 years, 8 months ago (2013-04-26 05:44:16 UTC) #28
Li Yin
On 2013/04/26 05:44:16, tyoshino wrote: > Checked results. Looks ok to commit. I'll commit it ...
7 years, 8 months ago (2013-04-26 05:49:52 UTC) #29
tyoshino (SeeGerritForStatus)
On 2013/04/26 05:49:52, Li Yin wrote: > On 2013/04/26 05:44:16, tyoshino wrote: > > Checked ...
7 years, 8 months ago (2013-04-26 06:05:48 UTC) #30
Li Yin
https://codereview.chromium.org/10668018/diff/66002/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/10668018/diff/66002/net/socket_stream/socket_stream.cc#newcode362 net/socket_stream/socket_stream.cc:362: if (result != ERR_CONNECTION_CLOSED && result != ERR_PROTOCOL_SWITCHED) I ...
7 years, 8 months ago (2013-04-26 06:57:18 UTC) #31
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/10668018/diff/66002/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): https://codereview.chromium.org/10668018/diff/66002/net/socket_stream/socket_stream.cc#newcode362 net/socket_stream/socket_stream.cc:362: if (result != ERR_CONNECTION_CLOSED && result != ERR_PROTOCOL_SWITCHED) On ...
7 years, 8 months ago (2013-04-26 07:19:43 UTC) #32
Li Yin
On 2013/04/26 07:19:43, tyoshino wrote: > Yes. I'm looking here too. Raising ERR_PROTOCOL_SWITCHED is fine ...
7 years, 8 months ago (2013-04-26 07:57:52 UTC) #33
Li Yin
On 2013/04/26 07:57:52, Li Yin wrote: > If there is indeed a bug about Spdy, ...
7 years, 8 months ago (2013-04-26 08:00:12 UTC) #34
tyoshino (SeeGerritForStatus)
On 2013/04/26 08:00:12, Li Yin wrote: > On 2013/04/26 07:57:52, Li Yin wrote: > > ...
7 years, 8 months ago (2013-04-26 08:34:05 UTC) #35
tyoshino (SeeGerritForStatus)
Li-san, Sorry but please upload patch set 10 again? We can go with that.
7 years, 8 months ago (2013-04-26 08:58:43 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/66017
7 years, 8 months ago (2013-04-26 09:51:46 UTC) #37
commit-bot: I haz the power
Change committed as 196728
7 years, 8 months ago (2013-04-26 14:31:19 UTC) #38
ojan
This patch looks like it made a layout test flaky. Reverting. http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showLargeExpectations=true&showExpectations=true&tests=http%2Ftests%2Fwebsocket%2Ftests%2Fhybi%2Fclose.html
7 years, 8 months ago (2013-04-26 22:21:21 UTC) #39
Li Yin
On 2013/04/26 22:21:21, ojan wrote: > This patch looks like it made a layout test ...
7 years, 8 months ago (2013-04-27 01:30:10 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/81001
7 years, 7 months ago (2013-05-01 03:23:54 UTC) #41
Li Yin
On 2013/04/27 01:30:10, Li Yin wrote: > On 2013/04/26 22:21:21, ojan wrote: > > This ...
7 years, 7 months ago (2013-05-01 03:27:17 UTC) #42
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-05-01 03:52:22 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/81001
7 years, 7 months ago (2013-05-01 05:54:37 UTC) #44
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=35303
7 years, 7 months ago (2013-05-01 08:12:17 UTC) #45
Li Yin
On 2013/05/01 08:12:17, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 7 months ago (2013-05-01 08:44:08 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/li.yin@intel.com/10668018/81001
7 years, 7 months ago (2013-05-02 02:11:51 UTC) #47
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=35876
7 years, 7 months ago (2013-05-02 04:09:20 UTC) #48
tyoshino (SeeGerritForStatus)
Committed patchset #16 manually as r197854 (presubmit successful).
7 years, 7 months ago (2013-05-02 07:38:41 UTC) #49
tyoshino (SeeGerritForStatus)
7 years, 7 months ago (2013-05-02 07:40:21 UTC) #50
Message was sent while issue was closed.
Ran webkit tests, net_unittests and relanded.

Powered by Google App Engine
This is Rietveld 408576698