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

Issue 305823003: Re-land: Defer SpdySession destruction to support closing writes (Closed)

Created:
6 years, 6 months ago by Johnny
Modified:
6 years, 6 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Defer SpdySession destruction to support closing writes Replace the STATE_CLOSED availability state with STATE_DRAINING, where: * The read-pump will not run, and no frames can be read. * No new frames may be queued in the sessions's write_queue. * However, the write-pump will continue to run. SpdySession's write-pump will destroy the session iff it's draining, the write queue is empty and no in-flight writes remain. As this (and ~SpdySessionPool()) are now the only locations where SpdySessions may be destroyed, session lifetime is more know-able and some WeakPtrs are removed. Some tests have been updated to include closing RST_STREAMS sent by the session. This reflects current behavior. A future CL will add GOAWAY frames upon session errors. BUG=375033, 379469 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273680 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275005

Patch Set 1 #

Patch Set 2 : Update remaining SpdyProxyClientSocketTests which need to run MessageLoop to let RST_STREAM write. #

Patch Set 3 : Regression tests and fix for crbug.com/379469 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -349 lines) Patch
M net/http/http_stream_factory_impl_job.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 2 chunks +8 lines, -1 line 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 chunk +3 lines, -1 line 0 comments Download
M net/spdy/spdy_proxy_client_socket.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 15 chunks +57 lines, -24 lines 0 comments Download
M net/spdy/spdy_session.h View 1 2 8 chunks +28 lines, -49 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 54 chunks +67 lines, -232 lines 0 comments Download
M net/spdy/spdy_session_pool.cc View 4 chunks +8 lines, -3 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 1 2 7 chunks +118 lines, -18 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 1 2 23 chunks +157 lines, -21 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Johnny
6 years, 6 months ago (2014-05-29 00:56:04 UTC) #1
Ryan Hamilton
Damn! You are a MACHINE! LGTM
6 years, 6 months ago (2014-05-29 19:48:29 UTC) #2
Johnny
The CQ bit was checked by jgraettinger@chromium.org
6 years, 6 months ago (2014-05-29 21:18:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jgraettinger@chromium.org/305823003/20001
6 years, 6 months ago (2014-05-29 21:21:51 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-05-29 22:26:42 UTC) #5
commit-bot: I haz the power
Change committed as 273680
6 years, 6 months ago (2014-05-30 00:23:42 UTC) #6
Johnny
Hey Ryan, Please take a look at PS3, a fix for issue 379469 which caused ...
6 years, 6 months ago (2014-06-04 22:36:40 UTC) #7
Ryan Hamilton
On 2014/06/04 22:36:40, Johnny wrote: > Hey Ryan, > > Please take a look at ...
6 years, 6 months ago (2014-06-04 23:31:01 UTC) #8
Johnny
The CQ bit was checked by jgraettinger@chromium.org
6 years, 6 months ago (2014-06-05 03:04:43 UTC) #9
Johnny
The CQ bit was unchecked by jgraettinger@chromium.org
6 years, 6 months ago (2014-06-05 03:04:46 UTC) #10
Johnny
The CQ bit was checked by jgraettinger@chromium.org
6 years, 6 months ago (2014-06-05 03:07:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jgraettinger@chromium.org/305823003/80001
6 years, 6 months ago (2014-06-05 03:08:37 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-05 03:36:26 UTC) #13
Message was sent while issue was closed.
Change committed as 275005

Powered by Google App Engine
This is Rietveld 408576698