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

Side by Side Diff: net/spdy/spdy_session.h

Issue 8319015: Don't send preface-PING. Send trailing ping 200ms (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <list> 10 #include <list>
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 base::TimeTicks received_data_time_; 518 base::TimeTicks received_data_time_;
519 519
520 // Indicate if we have already scheduled a delayed task to send a trailing 520 // Indicate if we have already scheduled a delayed task to send a trailing
521 // ping (and we never have more than one scheduled at a time). 521 // ping (and we never have more than one scheduled at a time).
522 bool trailing_ping_pending_; 522 bool trailing_ping_pending_;
523 523
524 // Indicate if we have already scheduled a delayed task to check the ping 524 // Indicate if we have already scheduled a delayed task to check the ping
525 // status. 525 // status.
526 bool check_ping_status_pending_; 526 bool check_ping_status_pending_;
527 527
528 // Indicate if the last data we sent was a ping (generally, a trailing ping). 528 // Indicate if we need to send a ping (generally, a trailing ping). This helps
529 // This helps us to decide if we need yet another trailing ping, or if it 529 // us to decide if we need yet another trailing ping, or if it would be a
530 // would be a waste of effort (and MUST not be done). 530 // waste of effort (and MUST not be done).
531 bool last_sent_was_ping_; 531 bool need_to_send_ping_;
jar (doing other things) 2011/10/17 22:09:28 Nice improvement on comments!
ramant (doing other things) 2011/10/17 23:40:57 Done.
532 532
533 // Initial send window size for the session; can be changed by an 533 // Initial send window size for the session; can be changed by an
534 // arriving SETTINGS frame; newly created streams use this value for the 534 // arriving SETTINGS frame; newly created streams use this value for the
535 // initial send window size. 535 // initial send window size.
536 int initial_send_window_size_; 536 int initial_send_window_size_;
537 537
538 // Initial receive window size for the session; there are plans to add a 538 // Initial receive window size for the session; there are plans to add a
539 // command line switch that would cause a SETTINGS frame with window size 539 // command line switch that would cause a SETTINGS frame with window size
540 // announcement to be sent on startup; newly created streams will use 540 // announcement to be sent on startup; newly created streams will use
541 // this value for the initial receive window size. 541 // this value for the initial receive window size.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 const spdy::SpdyControlFlags flags_; 602 const spdy::SpdyControlFlags flags_;
603 const spdy::SpdyStreamId id_; 603 const spdy::SpdyStreamId id_;
604 const spdy::SpdyStreamId associated_stream_; 604 const spdy::SpdyStreamId associated_stream_;
605 605
606 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); 606 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter);
607 }; 607 };
608 608
609 } // namespace net 609 } // namespace net
610 610
611 #endif // NET_SPDY_SPDY_SESSION_H_ 611 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698