Commit Graph

3551 Commits

Author SHA1 Message Date
Marten Seemann
7c7bcede6c rename handshake.TokenGenerator.NewToken to NewRetryToken 2019-06-02 14:14:05 +08:00
Marten Seemann
7fbae1c915 Merge pull request #1942 from lucas-clemente/token-expiry-time
reduce the Retry token expiry time to 10 seconds
2019-06-02 14:09:38 +08:00
Marten Seemann
1873503937 reduce the Retry token expiry time to 10 seconds
The expiry time used to be 24 hours before. The reason for this long
duration was that this included tokens that were issued to be used
between separate connections in gQUIC. At the moment, we are only
generating tokens for Retry packets, i.e. within a single connection.
They are therefore expected to be used within a single round trip.
2019-06-01 16:32:54 +08:00
Marten Seemann
4e709efa2f Merge pull request #1939 from lucas-clemente/crypto-setup-error-signaling
improve error handling in the crypto setup
2019-05-31 19:30:43 +08:00
Marten Seemann
e361d3c5cd use a callback to signal completion of the handshake 2019-05-31 19:13:41 +08:00
Marten Seemann
4fd6a7cc99 use a struct to pass callbacks from the session to the crypto setup 2019-05-31 19:00:10 +08:00
Marten Seemann
3b4e552582 Merge pull request #1936 from lucas-clemente/token-timestamp
use a high resolution timestamp in the token
2019-05-31 18:57:51 +08:00
Marten Seemann
743868159f use a callback to pass handshake errors to the session 2019-05-31 18:35:37 +08:00
Marten Seemann
ed69ae2ce0 Merge pull request #1940 from lucas-clemente/unexpected-handshake-messages
fix crash when receiving unexpected handshake messages
2019-05-31 18:14:29 +08:00
Marten Seemann
002b36abf5 use a high resolution timestamp in the token 2019-05-31 18:13:11 +08:00
Marten Seemann
aa9ab41560 Merge pull request #1937 from lucas-clemente/fix-hrr-race
fix race condition in crypto setup when sending a HelloRetryRequest
2019-05-31 18:09:08 +08:00
Marten Seemann
6899eb3c86 Merge pull request #1938 from lucas-clemente/remove-unused-connection-state
remove unused handshake.ConnectionState struct definition
2019-05-31 18:08:03 +08:00
Marten Seemann
b1b85cc68e Merge pull request #1935 from lucas-clemente/rename-cookie-to-token
rename the quic.Cookie to quic.Token
2019-05-31 18:06:47 +08:00
Marten Seemann
73bd91a093 fix crash when receiving unexpected handshake message 2019-05-31 18:04:44 +08:00
Marten Seemann
5d4a47a3f3 return a crypto error when receiving unexpected handshake messages 2019-05-31 17:57:07 +08:00
Marten Seemann
2f6ab5aa5f remove unused handshake.ConnectionState struct definition 2019-05-31 15:00:34 +08:00
Marten Seemann
0be4ee197f fix race condition in crypto setup when sending a HelloRetryRequest 2019-05-31 01:57:58 +08:00
Marten Seemann
1d6707325f name the quic.Cookie to quic.Token 2019-05-30 22:13:06 +08:00
Marten Seemann
06da72ae4e Merge pull request #1929 from lucas-clemente/drop-handshake-keys
drop Initial and Handshake keys when receiving the first 1-RTT ACK
2019-05-30 20:52:39 +08:00
Marten Seemann
8eda9306a6 Merge pull request #1934 from lucas-clemente/application-error-logging
fix logging of application errors
2019-05-30 18:08:51 +08:00
Marten Seemann
7a2ffb3ada Merge pull request #1930 from lucas-clemente/invalid-stream-id
introduce invalid stream ID to simplify the outgoing streams map
2019-05-30 18:07:39 +08:00
Marten Seemann
0034768f90 Merge pull request #1932 from lucas-clemente/rate-limiting-test-single-pconn
use a single packet conn for all dials in the rate limiting test
2019-05-30 17:58:46 +08:00
Marten Seemann
cd6047b58e fix logging of application errors 2019-05-30 17:15:19 +08:00
Marten Seemann
b0b8990dd0 simplify stream number calculation when sending STREAM_ID_BLOCKED frames 2019-05-30 15:56:57 +08:00
Marten Seemann
a4989c3d9c drop Initial and Handshake keys when receiving the first 1-RTT ACK 2019-05-30 14:19:26 +08:00
Marten Seemann
4834962cbd add a function to drop received packets of a certain encryption level 2019-05-30 14:19:11 +08:00
Marten Seemann
4d5b4fd790 add a function to drop sent packets of a certain encryption level 2019-05-30 13:47:16 +08:00
Marten Seemann
195bdc9944 remove unused handshakeComplete member variable from sent packet handler 2019-05-30 13:47:16 +08:00
Marten Seemann
1284678095 use a single packet conn for all dials in the rate limiting test 2019-05-30 13:19:29 +08:00
Marten Seemann
0da133d7db Merge pull request #1928 from lucas-clemente/handshake-complete-bytes-in-flight
correct the bytes in flight when dropping crypto packets
2019-05-30 05:42:06 +01:00
Marten Seemann
82acc7f2b7 introduce invalid stream ID to simplify the outgoing streams map 2019-05-30 03:16:45 +08:00
Marten Seemann
ea33339d26 correct the bytes in flight when dropping crypto packets 2019-05-30 01:47:03 +08:00
Marten Seemann
5009f1cb19 Merge pull request #1925 from lucas-clemente/remove-getoropenstream
remove unused Session.GetOrOpenStream
2019-05-29 10:30:15 +01:00
Marten Seemann
ba8a122680 Merge pull request #1924 from lucas-clemente/stream-limit-logging
improve logging of stream limit frames
2019-05-29 10:29:28 +01:00
Marten Seemann
8094665d1e remove outdated comment in packet packer 2019-05-29 08:31:44 +01:00
Marten Seemann
2f4fc22be1 remove unused Session.GetOrOpenStream
This method was only needed for the gQUIC H2 mapping.
2019-05-28 17:35:50 +01:00
Marten Seemann
8c40c3f768 improve logging of STREAMS_BLOCKED frames 2019-05-28 15:56:02 +02:00
Marten Seemann
c8aa4f4d4a improve logging of MAX_STREAMS frames 2019-05-28 15:54:25 +02:00
Marten Seemann
27a226980c Merge pull request #1920 from lucas-clemente/insecure-client
add a flag to skip certificate verification to the example client
2019-05-21 17:57:45 +01:00
Marten Seemann
2cec64fb36 Merge pull request #1918 from lucas-clemente/http3-server-send-settings
open a control stream and send a SETTINGS frame as an H3 server
2019-05-21 17:57:03 +01:00
Marten Seemann
c178613025 Merge pull request #1919 from lucas-clemente/dynamic-endpoint
add an HTTP endpoint to output arbitrary length data to example server
2019-05-21 17:56:49 +01:00
Marten Seemann
f2289c8903 add a flag to skip certificate verification to the example client 2019-05-21 15:43:08 +01:00
Marten Seemann
3e9ffe9e28 add an HTTP endpoint to output arbitrary length data to example server 2019-05-21 15:38:50 +01:00
Marten Seemann
1bf489b7af open a control stream and send a SETTINGS frame as an H3 server 2019-05-21 15:28:38 +01:00
Marten Seemann
9eb5777bbb Merge pull request #1916 from lucas-clemente/no-prr
add a flag to turn off PRR
2019-05-21 12:04:44 +01:00
Marten Seemann
91a57f72b7 Merge pull request #1914 from lucas-clemente/h3-alpn
make sure the TLS config contains the H3 ALPN token in server and client
2019-05-21 11:57:00 +01:00
Marten Seemann
0e85f8e6b2 Merge pull request #1911 from lucas-clemente/log-sent-ack-frame
fix logging of sent ACK frames
2019-05-21 11:54:11 +01:00
Marten Seemann
fd33eb319f add a flag to turn off PRR 2019-05-21 10:57:55 +01:00
Marten Seemann
afa4615c4d make sure the TLS config contains the H3 ALPN token in server and client 2019-05-20 17:55:59 +01:00
Marten Seemann
555737bbc2 fix logging of sent ACK frames 2019-05-20 15:51:58 +01:00