gfe-relnote: Let GFE be able to use FIFO write scheduler in QUIC and enable it via a connection option FIFO. Protected by gfe2_reloadable_flag_quic_use_fifo_write_scheduler.
PiperOrigin-RevId: 261676376
Change-Id: I74a4d92ad6d612c565eaa1e38186738988d02fe5
diff --git a/spdy/core/spdy_protocol.cc b/spdy/core/spdy_protocol.cc
index d9b642f..9094b47 100644
--- a/spdy/core/spdy_protocol.cc
+++ b/spdy/core/spdy_protocol.cc
@@ -229,6 +229,20 @@
return "UNKNOWN_ERROR_CODE";
}
+const char* WriteSchedulerTypeToString(WriteSchedulerType type) {
+ switch (type) {
+ case WriteSchedulerType::LIFO:
+ return "LIFO";
+ case WriteSchedulerType::SPDY:
+ return "SPDY";
+ case WriteSchedulerType::HTTP2:
+ return "HTTP2";
+ case WriteSchedulerType::FIFO:
+ return "FIFO";
+ }
+ return "UNKNOWN";
+}
+
size_t GetNumberRequiredContinuationFrames(size_t size) {
DCHECK_GT(size, kHttp2MaxControlFrameSendSize);
size_t overflow = size - kHttp2MaxControlFrameSendSize;