Commit Graph

207 Commits

Author SHA1 Message Date
Marten Seemann
5208845191 introduce a logging.CloseReason for version negotiation errors 2021-03-15 13:36:45 +08:00
Marten Seemann
2bd316b89e store 0-RTT queues in the packet handler map
This prevents a race condition between receiving of 0-RTT packets and
the creation of new session.
2021-03-11 21:16:50 +08:00
Marten Seemann
bab0384444 use a tracer to check for received 0-RTT packet in 0-RTT integration tests 2021-03-11 21:05:41 +08:00
Marten Seemann
7042ef8f8f simplify 0-RTT integration tests 2021-03-11 21:05:41 +08:00
Marten Seemann
f8313d868f return an Err0RTTRejected when the server rejects a 0-RTT connection 2021-03-09 18:02:12 +08:00
Marten Seemann
6440908f53 remove non-functioning 0-RTT test with different conn ID lengths 2021-03-09 17:27:10 +08:00
Marten Seemann
506281b904 Merge pull request #3058 from lucas-clemente/fix-0rtt-conn-id-issuing
fix issuing of connection IDs when dialing a 0-RTT connections
2021-03-09 16:11:17 +08:00
Marten Seemann
67503f9d41 fix flaky accept queue integration test 2021-03-05 11:55:45 +08:00
Marten Seemann
10217a6f3b fix issuing of connection IDs when dialing a 0-RTT connections
When dialing a 0-RTT connection, the client first restores the transport
parameters from the original connection, and then applies the transport
parameters provided by the server on the new connections.
2021-03-03 14:10:06 +08:00
Marten Seemann
ac87292e87 start path MTU discovery when the handshake completes 2021-03-03 12:00:51 +08:00
Marten Seemann
74569a514b Merge pull request #3040 from lucas-clemente/improve-handshake-tests
make the certificate verificiation integration tests more explicit
2021-03-03 00:27:46 +08:00
Marten Seemann
11c5c548b6 improve timeout measurement in the timeout test
When not sending any packets, the idle timeout starts when receiving the
HANDSHAKE_DONE frame (on the client side), not when the handshake completes.
2021-02-18 09:59:04 +08:00
Marten Seemann
7ee88def4a make it possible to use a custom tracer and the default tracer in tests 2021-02-18 09:59:04 +08:00
Marten Seemann
b94a4440cc simplify connection tracer creation in integration tests 2021-02-18 09:59:04 +08:00
Marten Seemann
4096eeaf92 make the certificate verificiation integration tests more explicit 2021-02-15 11:01:17 +08:00
Marten Seemann
aa68b3015d remove the metrics package
Recording every sent and received packet in OpenCensus is quite expensive.
Arguably, the metrics needs depend on the application, so that's where the
implementation of a metrics collector should live anyway.
2021-02-05 16:38:39 +08:00
Marten Seemann
8e7a4fe13f fix flaky stream cancelation integration test 2021-01-20 12:38:41 +08:00
Marten Seemann
70fe7be603 corrupt more ACKs in the MITM test 2021-01-18 19:48:16 +08:00
Marten Seemann
bef8207bf6 fix flaky key update integration test 2021-01-18 15:44:09 +08:00
Marten Seemann
d04662a964 add a RestoredTransportParameters method to the logging interface 2021-01-15 17:13:46 +08:00
Marten Seemann
b022d04b0f make the OpenStreamSync cancelation test less flaky 2021-01-04 15:12:49 +08:00
Marten Seemann
770ad155f2 use the standard quic.Config in the deadline tests 2020-12-31 18:35:08 +08:00
Marten Seemann
9693a46d31 Merge pull request #2162 from lucas-clemente/datagram
implement the datagram draft
2020-12-17 11:22:40 +07:00
Marten Seemann
1728a6c90c add an integration test for datagram transfers 2020-12-09 15:47:24 +07:00
Marten Seemann
356c69944e return a quic.ConnectionState from Session.ConnectionState() 2020-12-09 15:31:23 +07:00
Marten Seemann
595f6f814a introduce a quic.Config.HandshakeIdleTimeout, remove HandshakeTimeout 2020-12-08 16:12:39 +07:00
Marten Seemann
ff1f433c36 add a generic Log() function to the connection tracer 2020-12-06 09:33:38 +07:00
Marten Seemann
47c3cd8bb4 send 5 kB of stream data in the handshake drop test 2020-11-17 13:34:01 +07:00
Marten Seemann
8752576f26 run gofumpt, enable the gofumpt linter 2020-10-26 09:33:35 +07:00
Marten Seemann
0701ac8059 Merge pull request #2814 from VinozzZ/master
client: Add DialEarlyContext and DialAddrEarlyContext API
2020-10-08 09:31:04 +07:00
Yingrong Zhao
36add0e7a0 client: Add DialEarlyContext and DialAddrEarlyContext API 2020-10-07 22:20:28 -04:00
Marten Seemann
55a07c34ee add the exhaustive linter 2020-10-05 13:47:57 +07:00
Marten Seemann
77f7476bf7 include the error code in the string for CRYPTO_ERRORs 2020-09-25 20:23:05 +07:00
Marten Seemann
77d80f2632 check that keys are actually updated in the key update integration test 2020-09-23 12:31:54 +07:00
Marten Seemann
a063500d73 use a package-level variable to set the key update frequency 2020-09-22 19:55:52 +07:00
Marten Seemann
e9906b4d2b Merge pull request #2768 from lucas-clemente/reduce-handshake-drop-timeout
reduce the handshake timeout to two minutes in the handshake drop tests
2020-09-14 14:00:31 +07:00
Marten Seemann
f886be4cce enable the gofmt linter 2020-09-12 11:26:37 +07:00
Marten Seemann
309c578cb1 reduce the handshake timeout to two minutes in the handshake drop tests 2020-09-10 18:08:29 +07:00
Marten Seemann
980c840359 test that both endpoints time out in the timeout integration test 2020-09-05 18:10:44 +07:00
Marten Seemann
125318d9c9 add support for Go 1.15 2020-08-20 13:33:33 +07:00
Marten Seemann
99c0df0faf Merge pull request #2690 from lucas-clemente/fix-integration-test-flags
fix reading of flag values in integration tests
2020-07-29 07:56:04 +07:00
Marten Seemann
260356140f remove ACK decimation
The benefits of this are unclear when using Reno / Cubic.
2020-07-28 10:03:05 +07:00
Marten Seemann
6ac059564d fix reading of flag values in integration tests
Flag values are not available in init(), and since Go 1.13, it's not
possible to call flag.Parse() in init().
2020-07-28 08:47:24 +07:00
Marten Seemann
19ab01c064 add an integration test that randomly sets tracers 2020-07-22 19:22:49 +07:00
Marten Seemann
1c1c24545f run integration tests with qlog and metrics on CircleCI 2020-07-20 11:31:33 +07:00
Marten Seemann
2f63bc0731 pass a logging.Tracer to the packet handler map 2020-07-15 20:45:36 +07:00
Marten Seemann
ee24d3899e simplify the Tracer interface by combining the TracerFor... methods 2020-07-11 13:22:52 +07:00
Marten Seemann
1a0b642ac1 add integration tests using faulty packet conns 2020-07-10 18:27:41 +07:00
Marten Seemann
b5a3ff028d fix flaky cancellation integration test 2020-07-06 15:28:29 +07:00
Marten Seemann
ac606222e0 replace the GetLogWriter quic.Config option by a Tracer interface 2020-07-01 16:57:03 +07:00