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

Issue 8319015: Don't send preface-PING. Send trailing ping 200ms (Closed)

Created:
9 years, 2 months ago by ramant (doing other things)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Don't send preface-PING. Send trailing ping 200ms after sending the SYN_STREAM.Send PING no more than 1 ping after sendingSYN_STREAM ping. Server accepts PINGs only afterSYN_STREAM (which is a server bug). We will enablesendign PING after sending DATA after server fixes the bug.BUG=100587 R=jar,wtcTEST=network unit testsCommitted: http://src.chromium.org/viewvc/chrome?view=rev&revision=105949

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -14 lines) Patch
M net/spdy/spdy_session.h View 1 2 3 1 chunk +4 lines, -4 lines 2 comments Download
M net/spdy/spdy_session.cc View 1 2 10 chunks +7 lines, -10 lines 6 comments Download

Messages

Total messages: 7 (0 generated)
wtc
Patch Set 2 LGTM. My only complaint is that the meaning of last_sent_was_ping_ has changed, ...
9 years, 2 months ago (2011-10-17 21:17:58 UTC) #1
wtc
Patch Set 4 LGTM. Thanks.
9 years, 2 months ago (2011-10-17 21:37:10 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/8319015/6001
9 years, 2 months ago (2011-10-17 21:37:33 UTC) #3
jar (doing other things)
Two changes suggested below. Thanks! http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc#newcode240 net/spdy/spdy_session.cc:240: int SpdySession::trailing_ping_delay_time_ms_ = 200; ...
9 years, 2 months ago (2011-10-17 22:09:27 UTC) #4
jar (doing other things)
http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc File net/spdy/spdy_session.cc (right): http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc#newcode1545 net/spdy/spdy_session.cc:1545: // TODO(rtenneti): Enable sending Preface-PING after server fix. Suggest: ...
9 years, 2 months ago (2011-10-17 22:40:05 UTC) #5
commit-bot: I haz the power
Change committed as 105949
9 years, 2 months ago (2011-10-17 23:00:27 UTC) #6
ramant (doing other things)
9 years, 2 months ago (2011-10-17 23:40:57 UTC) #7
Will submit for the changes suggested by jar.

thanks,
raman

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc
File net/spdy/spdy_session.cc (right):

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc#new...
net/spdy/spdy_session.cc:240: int SpdySession::trailing_ping_delay_time_ms_ =
200;
On 2011/10/17 22:09:28, jar wrote:
> Will argued for keeping this at 1000, and was persuasive.  His argument is
that
> the common case will be a connect to a site... get top level html... connect
to
> get subresources... and *then* we'll send the trailing ping.  Hence he wanted
to
> be well over one or two round trip times... and 1 second works great.

Done.

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc#new...
net/spdy/spdy_session.cc:531: need_to_send_ping_ = true;
On 2011/10/17 22:09:28, jar wrote:
> Please add comment:
> Some servers don't like too many pings, so we limit our current sending to no
> more than one ping for any syn sent.  To do this, we avoid ever setting this
to
> true unless we send a syn (which we have just done).  This approach may change
> over time as servers change their responses to
> pings.

Done.

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.cc#new...
net/spdy/spdy_session.cc:1545: // TODO(rtenneti): Enable sending Preface-PING
after server fix.
On 2011/10/17 22:40:05, jar wrote:
> Suggest:
> TODO(rtenneti): Send preface pings when more servers support additional pings.

Done.

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.h
File net/spdy/spdy_session.h (right):

http://codereview.chromium.org/8319015/diff/6001/net/spdy/spdy_session.h#newc...
net/spdy/spdy_session.h:531: bool need_to_send_ping_;
On 2011/10/17 22:09:28, jar wrote:
> Nice improvement on comments!

Done.

Powered by Google App Engine
This is Rietveld 408576698