Set QUIC's max packet size to whatever Quartc configures.

Currently, Quartc only configures the max packet size on the packet writer.
However, the QuicConnection keeps its own, separate max packet size.  This is
set from a constant in quic_constants.h (kDefaultMaxPacketSize = 1350 for
clients or kDefaultServerMaxPacketSize = 1000 for servers).

Calling QuicConnection::SetMaxPacketLength() updates the connection's value to
match the packet writer's value.

The effect can be confirmed by running Quartc tests.  Before this change, we saw
1000 bytes as the max packet size on the server:
Packet size stats=[mean = 349, stddev = 394, min = 19, max = 1000, 25% = 36, 50% = 130, 75% = 787, 90% = 1000]

After this change, we observe 1200 bytes as the max packet size in both
directions:
Packet size stats=[mean = 262, stddev = 432, min = 19, max = 1200, 25% = 29, 50% = 35, 75% = 141, 90% = 1200]

gfe-relnote: n/a (Quartc only)
PiperOrigin-RevId: 241603141
Change-Id: I9da1c0dcfa37af22c2f0decdf27f9081eec22444
diff --git a/quic/quartc/quartc_factory.cc b/quic/quartc/quartc_factory.cc
index 9517e0b..436212f 100644
--- a/quic/quartc/quartc_factory.cc
+++ b/quic/quartc/quartc_factory.cc
@@ -208,6 +208,8 @@
       connection_id, peer_address, connection_helper, alarm_factory,
       packet_writer,
       /*owns_writer=*/false, perspective, supported_versions);
+  quic_connection->SetMaxPacketLength(
+      packet_writer->GetMaxPacketSize(peer_address));
 
   QuicSentPacketManager& sent_packet_manager =
       quic_connection->sent_packet_manager();