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

Issue 675863002: Code cleanup of control frame size enforcement. (Closed)

Created:
6 years, 1 month ago by Bence
Modified:
4 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, alyssar
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Code cleanup of control frame size enforcement. Introduce kMaxControlFrameSize global const for fragmenting outgoing frames. Get rid of GetControlFrameBufferMaxSize() and GetHeaderFragmentMaxSize() inline members. Motivation is to converge with server side code. Only functional change is to decrease control frame fragment size to 1 kB for SPDY. Since frame headers are tiny, this causes little overhead. Also, incoming control frame size limit is now properly enforced (there was an incorrect offset by frame header size before). This CL lands server change 78267288 among other modifications. Committed: https://crrev.com/0e2deda3f0c59c8fc18323ede48a552bef341c24 Cr-Commit-Position: refs/heads/master@{#301154}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -46 lines) Patch
M net/spdy/spdy_framer.h View 1 chunk +6 lines, -24 lines 1 comment Download
M net/spdy/spdy_framer.cc View 7 chunks +10 lines, -6 lines 0 comments Download
M net/spdy/spdy_framer_test.cc View 11 chunks +29 lines, -15 lines 0 comments Download
M net/spdy/spdy_protocol.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
Bence
Ryan: PTAL.
6 years, 1 month ago (2014-10-24 13:01:53 UTC) #2
Ryan Hamilton
Can you clarify what changes are NOT part of the internal change? I think it ...
6 years, 1 month ago (2014-10-24 16:54:43 UTC) #3
Bence
On 2014/10/24 16:54:43, Ryan Hamilton wrote: > Can you clarify what changes are NOT part ...
6 years, 1 month ago (2014-10-24 17:16:10 UTC) #4
Ryan Hamilton
thanks. lgtm
6 years, 1 month ago (2014-10-24 17:45:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/675863002/1
6 years, 1 month ago (2014-10-24 17:54:43 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-24 18:40:19 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0e2deda3f0c59c8fc18323ede48a552bef341c24 Cr-Commit-Position: refs/heads/master@{#301154}
6 years, 1 month ago (2014-10-24 18:41:43 UTC) #9
Ryan Hamilton
Bence, Alyssa was recently debugging some SPDY framing issues and noticed that Chrome sends CONTINUATION ...
4 years, 10 months ago (2016-02-08 17:57:02 UTC) #10
Bence
I am not aware of any metrics on on header block size. It's a shame ...
4 years, 10 months ago (2016-02-09 15:28:09 UTC) #11
Bence
4 years, 10 months ago (2016-02-09 23:30:16 UTC) #12
Message was sent while issue was closed.
On 2016/02/09 15:28:09, Bence wrote:
> I am not aware of any metrics on on header block size.  It's a shame that this
> fragment limit is so low.
> 
> Note that it would kinda make sense to have the same fragment size for control
> and data frames, because we fragment data to avoid head-of-line blocking.  The
> current data fragment size is kMaxSpdyFrameChunkSize, about 3 kB, but that
> should also be increased, see https://crbug.com/143193.
> 
> https://codereview.chromium.org/675863002/diff/1/net/spdy/spdy_framer.h
> File net/spdy/spdy_framer.h (left):
> 
>
https://codereview.chromium.org/675863002/diff/1/net/spdy/spdy_framer.h#oldco...
> net/spdy/spdy_framer.h:731: // fragment at smaller payload boundaries.
> Okay, so this was the original motivation for fragmenting at 1 kB.  I guess it
> is reasonable now to raise it.

Fixed in https://crrev.com/1679043003.

Powered by Google App Engine
This is Rietveld 408576698