diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-23 12:44:25 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-23 12:44:25 +0100 |
commit | 71119b4926181014e35094de9b8c48ed87be446c (patch) | |
tree | b9173bed0fdfecda92ff92068154a96fb7b012ef /netwerk/protocol/http/Http2Session.h | |
parent | b884cfd05e35ba96f26a864408d9cd67b913a13b (diff) | |
parent | 0fca15e1f3b24fb5bac76edb1ad0f057ad07851d (diff) | |
download | UXP-71119b4926181014e35094de9b8c48ed87be446c.tar UXP-71119b4926181014e35094de9b8c48ed87be446c.tar.gz UXP-71119b4926181014e35094de9b8c48ed87be446c.tar.lz UXP-71119b4926181014e35094de9b8c48ed87be446c.tar.xz UXP-71119b4926181014e35094de9b8c48ed87be446c.zip |
Merge branch 'security_tls_1-3_1' into TLS-1.3
Diffstat (limited to 'netwerk/protocol/http/Http2Session.h')
-rw-r--r-- | netwerk/protocol/http/Http2Session.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/netwerk/protocol/http/Http2Session.h b/netwerk/protocol/http/Http2Session.h index 60986381b..b4ddeb5ec 100644 --- a/netwerk/protocol/http/Http2Session.h +++ b/netwerk/protocol/http/Http2Session.h @@ -43,12 +43,13 @@ public: NS_DECL_NSAHTTPSEGMENTREADER NS_DECL_NSAHTTPSEGMENTWRITER - Http2Session(nsISocketTransport *, uint32_t version); + Http2Session(nsISocketTransport *, uint32_t version, bool attemptingEarlyData); bool AddStream(nsAHttpTransaction *, int32_t, bool, nsIInterfaceRequestor *) override; bool CanReuse() override { return !mShouldGoAway && !mClosed; } bool RoomForMoreStreams() override; + uint32_t SpdyVersion() override; // When the connection is active this is called up to once every 1 second // return the interval (in seconds) that the connection next wants to @@ -235,6 +236,8 @@ public: // overload of nsAHttpTransaction nsresult ReadSegmentsAgain(nsAHttpSegmentReader *, uint32_t, uint32_t *, bool *) override final; nsresult WriteSegmentsAgain(nsAHttpSegmentWriter *, uint32_t , uint32_t *, bool *) override final; + bool Do0RTT() override final { return true; } + nsresult Finish0RTT(bool aRestart, bool aAlpnChanged) override final; private: @@ -492,6 +495,10 @@ private: bool mUseH2Deps; + bool mAttemptingEarlyData; + // The ID(s) of the stream(s) that we are getting 0RTT data from. + nsTArray<uint32_t> m0RTTStreams; + private: /// connect tunnels void DispatchOnTunnel(nsAHttpTransaction *, nsIInterfaceRequestor *); |