Skip to content

Commit

Permalink
update quic stream
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Nov 26, 2024
1 parent c324706 commit f3aa016
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Networking/Sources/MsQuicSwift/QuicStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ public final class QuicStream: Sendable {
}
}

// https://github.com/microsoft/msquic/blob/main/docs/Settings.md
// StreamRecvWindowDefault Initial stream receive window size for all stream types.
// Retrieves the current flow control window (StreamRecvWindowDefault) for QUIC streams.
public func getFlowControlWindow() throws -> Int {
try storage.write { storage in
var settings = QUIC_SETTINGS()
Expand All @@ -112,6 +115,8 @@ public final class QuicStream: Sendable {
}
}

// Adjusts the flow control window (StreamRecvWindowDefault) for QUIC streams.
// Optimize Network Throughput & Manage Resource Usage
public func adjustFlowControl(windowSize: Int) throws {
try storage.write { storage in
var settings = QUIC_SETTINGS()
Expand Down

0 comments on commit f3aa016

Please sign in to comment.