Marten Seemann
2b8cece60a
add a context to Session.Open{Uni}StreamSync
2019-06-22 19:37:21 +08:00
Marten Seemann
e63a991950
add an integration test that cancels AcceptStream
2019-06-22 19:37:12 +08:00
Marten Seemann
5550ba2c3b
add a context to Session.Accept{Uni}Stream
2019-06-22 19:37:11 +08:00
Marten Seemann
f74082b2fb
use chan instead of sync.Cond to signal that new streams can be accepted
2019-06-22 19:36:54 +08:00
Marten Seemann
12bce1caaa
add a context to Listener.Accept
2019-06-22 19:36:52 +08:00
Marten Seemann
8dbe1684be
Merge pull request #1957 from lucas-clemente/remove-get-packet-number-length
...
remove unused function GetPacketNumberLength
2019-06-22 18:38:49 +08:00
Marten Seemann
d495b4bada
remove unused function GetPacketNumberLength
2019-06-21 20:13:59 +08:00
Marten Seemann
119286b05a
Merge pull request #1908 from lucas-clemente/quic-trace
...
add quic-trace support
2019-06-21 13:38:14 +08:00
Marten Seemann
439c5eae87
add a Changelog entry for quic-trace
2019-06-21 12:51:39 +08:00
Marten Seemann
880886a139
record the congestion state for tracing before processing the ACK frame
2019-06-20 22:58:01 +08:00
Marten Seemann
c6b8ed9322
update quic-trace to handle CRYPTO frames
2019-06-20 22:58:01 +08:00
Marten Seemann
fcb0d6cfdc
record InSlowStart and InRecovery
2019-06-20 22:58:01 +08:00
Marten Seemann
73f83ca4bb
add a tracing option to the example server
2019-06-20 22:58:01 +08:00
Marten Seemann
7c7b1ba9c7
add tracing for lost packets
2019-06-20 22:58:01 +08:00
Marten Seemann
22cbb344af
move the TransportState struct to the quictrace package
...
Prevents an import loop when passing the tracer to the ackhandler.
2019-06-20 22:58:01 +08:00
Marten Seemann
267d11ee66
add tracing for sent and received packets
2019-06-20 22:58:01 +08:00
Marten Seemann
8926531f7e
add the quic-trace protobuf
2019-06-20 22:57:57 +08:00
Marten Seemann
4500a84010
Merge pull request #1953 from lucas-clemente/varint-error-codes
...
use varints for error codes
2019-06-20 21:56:02 +08:00
Marten Seemann
1f4e63aff6
document the range of valid values for error codes
2019-06-14 17:40:51 +08:00
Marten Seemann
147181786a
use a varint for the error code in the RESET_STREAM frame
2019-06-14 17:38:27 +08:00
Marten Seemann
453aa23553
use a varint for the error code in the CONNECTION_CLOSE frame
2019-06-14 17:35:40 +08:00
Marten Seemann
2225bfd9a2
Merge pull request #1951 from lucas-clemente/fix-echo-example
...
fix ALPN in echo example
2019-06-09 23:07:30 +08:00
Marten Seemann
375b609610
fix ALPN in echo example
2019-06-07 16:27:37 +08:00
Marten Seemann
d0b5cc1133
Merge pull request #1950 from lucas-clemente/openstreamsync-in-order
...
return OpenStreamSync calls in the order they were called
2019-06-07 13:00:18 +08:00
Marten Seemann
061b92ea5c
return OpenStreamSync calls in the order they were called
2019-06-06 17:43:38 +08:00
Marten Seemann
e7f20d427b
Merge pull request #1948 from lucas-clemente/stream-num
...
refactor the stream maps
2019-06-05 23:46:36 +08:00
Marten Seemann
857e4ae9a9
use stream numbers, not stream ids, in the stream maps
2019-06-05 20:01:51 +08:00
Marten Seemann
a8633a952c
introduce a type for the stream number
2019-06-05 17:45:17 +08:00
Marten Seemann
0dd26f4a4c
return the invalid stream ID if no streams are allowed
2019-06-05 15:17:30 +08:00
Marten Seemann
42fdeab091
remove stray print statement in streams map
2019-06-05 13:23:17 +08:00
Marten Seemann
af5c057457
Merge pull request #1944 from lucas-clemente/enforce-alpn
...
enforce ALPN
2019-06-02 15:10:13 +08:00
Marten Seemann
7c1f9dffe4
add an integration test for ALPN
2019-06-02 14:58:41 +08:00
Marten Seemann
09111b45f9
reject a tls.Config without NextProtos for dialing
2019-06-02 14:58:41 +08:00
Marten Seemann
8eeddeb9c0
reject a tls.Config without NextProtos for listening
2019-06-02 14:58:41 +08:00
Marten Seemann
979ab75b3b
require ALPN during the TLS handshake
2019-06-02 14:58:37 +08:00
Marten Seemann
74ddf326c1
Merge pull request #1943 from lucas-clemente/new-tokens
...
send NEW_TOKEN frames
2019-06-02 14:42:25 +08:00
Marten Seemann
314df9229c
Merge pull request #1941 from lucas-clemente/post-handshake-errors
...
add error handling for post-handshake crypto messages
2019-06-02 14:26:05 +08:00
Marten Seemann
34543848f0
send a NEW_TOKEN from after completing the handshake (as a server)
2019-06-02 14:18:27 +08:00
Marten Seemann
784ed16d94
Merge pull request #1945 from lucas-clemente/fix-flaky-token-generator-test
...
fix flaky token generator test on CI
2019-06-02 14:14:25 +08:00
Marten Seemann
7c7bcede6c
rename handshake.TokenGenerator.NewToken to NewRetryToken
2019-06-02 14:14:05 +08:00
Marten Seemann
17634d2fe5
error when receiving a post-handshake message with wrong encryption level
2019-06-02 14:10:51 +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
d4da26bdbd
fix flaky token generator test on CI
2019-06-02 13:57:51 +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
6888eb8593
return an error when handling the NewSessionTicket failed
2019-06-01 13:01:49 +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