Commit 8cbd8068 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2 push: set weight for new stream

give the new stream the old one's stream_weight internally to avoid
sending a PRIORITY frame unless asked for it
parent a14fa8f8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -310,8 +310,10 @@ static CURL *duphandle(struct SessionHandle *data)
        (void)Curl_close(second);
        second = NULL;
      }
      else
      else {
        Curl_http2_setup_req(second);
        second->state.stream_weight = data->state.stream_weight;
      }
    }
  }
  return second;