mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 21:57:36 +03:00
handle the transport parameters in the packet packer
This commit is contained in:
parent
caf8da9adc
commit
9f5bfbe292
5 changed files with 31 additions and 40 deletions
|
@ -914,12 +914,7 @@ func (s *session) handleCloseError(closeErr closeError) error {
|
|||
func (s *session) processTransportParameters(params *handshake.TransportParameters) {
|
||||
s.peerParams = params
|
||||
s.streamsMap.UpdateLimits(params)
|
||||
if params.OmitConnectionID {
|
||||
s.packer.SetOmitConnectionID()
|
||||
}
|
||||
if params.MaxPacketSize != 0 {
|
||||
s.packer.SetMaxPacketSize(params.MaxPacketSize)
|
||||
}
|
||||
s.packer.HandleTransportParameters(params)
|
||||
s.connFlowController.UpdateSendWindow(params.ConnectionFlowControlWindow)
|
||||
// the crypto stream is the only open stream at this moment
|
||||
// so we don't need to update stream flow control windows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue