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

Unified Diff: net/quic/p2p/quic_p2p_stream.cc

Issue 1273233002: Implement QuicChannel and QuicChannelFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/p2p/quic_p2p_stream.cc
diff --git a/net/quic/p2p/quic_p2p_stream.cc b/net/quic/p2p/quic_p2p_stream.cc
index 3a236f39d013cb428f11259c62ee89d779dddc8c..af31f3cff43d5edba2ed165bcbe51c4293d79098 100644
--- a/net/quic/p2p/quic_p2p_stream.cc
+++ b/net/quic/p2p/quic_p2p_stream.cc
@@ -19,11 +19,8 @@ QuicP2PStream::~QuicP2PStream() {}
void QuicP2PStream::OnDataAvailable() {
DCHECK(delegate_);
- char buffer[1024];
struct iovec iov;
while (true) {
- iov.iov_base = buffer;
- iov.iov_len = arraysize(buffer);
if (sequencer()->GetReadableRegions(&iov, 1) != 1) {
// No more data to read.
break;

Powered by Google App Engine
This is Rietveld 408576698