Index: remoting/protocol/quic_channel_factory.cc |
diff --git a/remoting/protocol/quic_channel_factory.cc b/remoting/protocol/quic_channel_factory.cc |
index 0a495467110a3fdc021247b93fac07d8f2863ee1..26ff3c8cbc18f8dfc2f564a7063a8a2ce40c646e 100644 |
--- a/remoting/protocol/quic_channel_factory.cc |
+++ b/remoting/protocol/quic_channel_factory.cc |
@@ -23,6 +23,7 @@ |
#include "net/quic/quic_clock.h" |
#include "net/quic/quic_connection_helper.h" |
#include "net/quic/quic_default_packet_writer.h" |
+#include "net/quic/quic_protocol.h" |
#include "net/socket/stream_socket.h" |
#include "remoting/base/constants.h" |
#include "remoting/protocol/datagram_channel_factory.h" |
@@ -77,6 +78,10 @@ class P2PQuicPacketWriter : public net::QuicPacketWriter { |
} |
bool IsWriteBlocked() const override { return write_blocked_; } |
void SetWritable() override { write_blocked_ = false; } |
+ net::QuicByteCount GetMaxPacketSize(const net::IPEndPoint& peer_address) const |
+ override { |
+ return net::kMaxPacketSize; |
+ } |
private: |
void OnSendComplete(int result){ |