| Index: net/quic/quic_config.cc
|
| diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
|
| index 25e567cb0a417d7ae7329b0d95d0bd33ca93ae7f..516c32d8c49457e71f68907f1d5ac2c414d08741 100644
|
| --- a/net/quic/quic_config.cc
|
| +++ b/net/quic/quic_config.cc
|
| @@ -417,7 +417,8 @@ QuicConfig::QuicConfig()
|
| socket_receive_buffer_(kSRBF, PRESENCE_OPTIONAL),
|
| multipath_enabled_(kMPTH, PRESENCE_OPTIONAL),
|
| connection_migration_disabled_(kNCMR, PRESENCE_OPTIONAL),
|
| - alternate_server_address_(kASAD, PRESENCE_OPTIONAL) {
|
| + alternate_server_address_(kASAD, PRESENCE_OPTIONAL),
|
| + force_hol_blocking_(kFHOL, PRESENCE_OPTIONAL) {
|
| SetDefaults();
|
| }
|
|
|
| @@ -643,6 +644,18 @@ const IPEndPoint& QuicConfig::ReceivedAlternateServerAddress() const {
|
| return alternate_server_address_.GetReceivedValue();
|
| }
|
|
|
| +void QuicConfig::SetForceHolBlocking() {
|
| + force_hol_blocking_.SetSendValue(1);
|
| +}
|
| +
|
| +bool QuicConfig::ForceHolBlocking(Perspective perspective) const {
|
| + if (perspective == Perspective::IS_SERVER) {
|
| + return force_hol_blocking_.HasReceivedValue();
|
| + } else {
|
| + return force_hol_blocking_.HasSendValue();
|
| + }
|
| +}
|
| +
|
| bool QuicConfig::negotiated() const {
|
| // TODO(ianswett): Add the negotiated parameters once and iterate over all
|
| // of them in negotiated, ToHandshakeMessage, ProcessClientHello, and
|
|
|