| Index: net/quic/reliable_quic_stream.cc
|
| diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc
|
| index adb805197c77693f88362c43a80d3f7fe6e126e3..6eb03783532880bbf07f04604052ccbe3ce80061 100644
|
| --- a/net/quic/reliable_quic_stream.cc
|
| +++ b/net/quic/reliable_quic_stream.cc
|
| @@ -17,7 +17,8 @@ using std::string;
|
|
|
| namespace net {
|
|
|
| -#define ENDPOINT (is_server_ ? "Server: " : " Client: ")
|
| +#define ENDPOINT \
|
| + (perspective_ == Perspective::IS_SERVER ? "Server: " : "Client: ")
|
|
|
| namespace {
|
|
|
| @@ -126,12 +127,13 @@ ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session)
|
| rst_sent_(false),
|
| rst_received_(false),
|
| fec_policy_(FEC_PROTECT_OPTIONAL),
|
| - is_server_(session_->is_server()),
|
| - flow_controller_(
|
| - session_->connection(), id_, is_server_,
|
| - GetReceivedFlowControlWindow(session),
|
| - GetInitialStreamFlowControlWindowToSend(session),
|
| - GetInitialStreamFlowControlWindowToSend(session)),
|
| + perspective_(session_->perspective()),
|
| + flow_controller_(session_->connection(),
|
| + id_,
|
| + perspective_,
|
| + GetReceivedFlowControlWindow(session),
|
| + GetInitialStreamFlowControlWindowToSend(session),
|
| + GetInitialStreamFlowControlWindowToSend(session)),
|
| connection_flow_controller_(session_->flow_controller()),
|
| stream_contributes_to_connection_flow_control_(true) {
|
| }
|
|
|