fix recv connection flow should always use default initial window size
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
use {client, frame, proto, server};
|
use {client, frame, proto, server};
|
||||||
use codec::{RecvError, UserError};
|
use codec::{RecvError, UserError};
|
||||||
use frame::Reason;
|
use frame::{Reason, DEFAULT_INITIAL_WINDOW_SIZE};
|
||||||
use proto::*;
|
use proto::*;
|
||||||
|
|
||||||
use http::HeaderMap;
|
use http::HeaderMap;
|
||||||
@@ -64,13 +64,14 @@ where
|
|||||||
|
|
||||||
let mut flow = FlowControl::new();
|
let mut flow = FlowControl::new();
|
||||||
|
|
||||||
flow.inc_window(config.init_remote_window_sz)
|
// connections always have the default window size, regardless of
|
||||||
.ok()
|
// settings
|
||||||
|
flow.inc_window(DEFAULT_INITIAL_WINDOW_SIZE)
|
||||||
.expect("invalid initial remote window size");
|
.expect("invalid initial remote window size");
|
||||||
flow.assign_capacity(config.init_remote_window_sz);
|
flow.assign_capacity(DEFAULT_INITIAL_WINDOW_SIZE);
|
||||||
|
|
||||||
Recv {
|
Recv {
|
||||||
init_window_sz: config.init_remote_window_sz,
|
init_window_sz: config.init_local_window_sz,
|
||||||
flow: flow,
|
flow: flow,
|
||||||
next_stream_id: next_stream_id.into(),
|
next_stream_id: next_stream_id.into(),
|
||||||
pending_window_updates: store::Queue::new(),
|
pending_window_updates: store::Queue::new(),
|
||||||
|
|||||||
Reference in New Issue
Block a user