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

Side by Side Diff: net/tools/quic/quic_server_session.cc

Issue 82913011: LOG(INFO) tidying in net/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert dns_fuzz_stub changes Created 7 years 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 | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "net/tools/quic/quic_server_session.h" 5 #include "net/tools/quic/quic_server_session.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/reliable_quic_stream.h" 8 #include "net/quic/reliable_quic_stream.h"
9 #include "net/tools/quic/quic_spdy_server_stream.h" 9 #include "net/tools/quic/quic_spdy_server_stream.h"
10 10
(...skipping 22 matching lines...) Expand all
33 } 33 }
34 34
35 void QuicServerSession::OnConnectionClosed(QuicErrorCode error, 35 void QuicServerSession::OnConnectionClosed(QuicErrorCode error,
36 bool from_peer) { 36 bool from_peer) {
37 QuicSession::OnConnectionClosed(error, from_peer); 37 QuicSession::OnConnectionClosed(error, from_peer);
38 owner_->OnConnectionClosed(connection()->guid(), error); 38 owner_->OnConnectionClosed(connection()->guid(), error);
39 } 39 }
40 40
41 bool QuicServerSession::ShouldCreateIncomingReliableStream(QuicStreamId id) { 41 bool QuicServerSession::ShouldCreateIncomingReliableStream(QuicStreamId id) {
42 if (id % 2 == 0) { 42 if (id % 2 == 0) {
43 DLOG(INFO) << "Invalid incoming even stream_id:" << id; 43 DVLOG(0) << "Invalid incoming even stream_id:" << id;
44 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID); 44 connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID);
45 return false; 45 return false;
46 } 46 }
47 if (GetNumOpenStreams() >= get_max_open_streams()) { 47 if (GetNumOpenStreams() >= get_max_open_streams()) {
48 DLOG(INFO) << "Failed to create a new incoming stream with id:" << id 48 DVLOG(0) << "Failed to create a new incoming stream with id:" << id
49 << " Already " << GetNumOpenStreams() << " open."; 49 << " Already " << GetNumOpenStreams() << " open.";
50 connection()->SendConnectionClose(QUIC_TOO_MANY_OPEN_STREAMS); 50 connection()->SendConnectionClose(QUIC_TOO_MANY_OPEN_STREAMS);
51 return false; 51 return false;
52 } 52 }
53 return true; 53 return true;
54 } 54 }
55 55
56 ReliableQuicStream* QuicServerSession::CreateIncomingReliableStream( 56 ReliableQuicStream* QuicServerSession::CreateIncomingReliableStream(
57 QuicStreamId id) { 57 QuicStreamId id) {
58 if (!ShouldCreateIncomingReliableStream(id)) { 58 if (!ShouldCreateIncomingReliableStream(id)) {
59 return NULL; 59 return NULL;
60 } 60 }
61 61
62 return new QuicSpdyServerStream(id, this); 62 return new QuicSpdyServerStream(id, this);
63 } 63 }
64 64
65 ReliableQuicStream* QuicServerSession::CreateOutgoingReliableStream() { 65 ReliableQuicStream* QuicServerSession::CreateOutgoingReliableStream() {
66 DLOG(ERROR) << "Server push not yet supported"; 66 DLOG(ERROR) << "Server push not yet supported";
67 return NULL; 67 return NULL;
68 } 68 }
69 69
70 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() { 70 QuicCryptoServerStream* QuicServerSession::GetCryptoStream() {
71 return crypto_stream_.get(); 71 return crypto_stream_.get();
72 } 72 }
73 73
74 } // namespace tools 74 } // namespace tools
75 } // namespace net 75 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server.cc ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698