Commit Graph

5362 Commits

Author SHA1 Message Date
Marten Seemann
5eaf327e06 Merge pull request #2987 from lucas-clemente/qlog-draft-02-fixes
qlog draft-02 fixes
2021-01-15 16:57:35 +08:00
Marten Seemann
4f598e0cdc Merge pull request #2981 from lucas-clemente/fix-flaky-qlog-test
fix flaky qlog test
2021-01-15 16:57:18 +08:00
Marten Seemann
c5b610f6a5 remove unneeded check in receivedPacketHandler.IsPotentiallyDuplicate
The application data packet number space is never dropped.
2021-01-11 16:56:34 +08:00
Marten Seemann
ec2b9f47ca qlog the max_datagram_frame_size transport parameter 2021-01-11 16:19:05 +08:00
Marten Seemann
2e5c43bef0 remove unneeded overflow check when parsing the max_ack_delay 2021-01-11 15:57:47 +08:00
Marten Seemann
8e94f08ee5 simplify switch statement in the transport parameter parser 2021-01-11 15:29:00 +08:00
Marten Seemann
ec3482d261 run golangci-lint in a separate job 2021-01-11 14:58:56 +08:00
Marten Seemann
018b7dc76d use a text-based comparison in the go-generate workflow 2021-01-09 17:32:53 +08:00
Marten Seemann
86cec07568 remove the Max0RTTQueueLen and the MaxUndecrytablePackets by 1
Using values below a power of 2 might improve memory allocation.
2021-01-09 13:35:19 +08:00
Marten Seemann
7a301aae3d dequeue all 0-RTT packets to the session in one go 2021-01-09 13:34:05 +08:00
Marten Seemann
26565b023b introduce a separate queue for undecryptable packets
We should prioritize the decryption of previously undecryptable packets,
every time a new encryption level becomes available. This is achieved
by introducing a separate queue instead of just putting the packets back
into the receivedPackets channel.
This also allows us to only count every received packet once for the
amplification limit.
2021-01-07 12:58:17 +08:00
Marten Seemann
f28db16df4 fix packet_type logging for packet_lost, packet_dropped and packet_buffered 2021-01-07 11:18:18 +08:00
Marten Seemann
84af90f2f8 qlog the packet size in the newly introduced RawInfo 2021-01-07 11:02:00 +08:00
Marten Seemann
d1c5297c0b Merge pull request #2983 from lucas-clemente/gofumpt-limit-to-go-files
only run gofumpt on .go files in pre-commit hook
2021-01-06 11:05:44 +08:00
Marten Seemann
a6c767183c only run gofumpt on .go files in pre-commit hook 2021-01-06 10:48:41 +08:00
Marten Seemann
4653549266 fix outdated comment for the http3.Server 2021-01-05 11:21:44 +08:00
Marten Seemann
345e6e0ac9 use a pkg.go.dev instead of a GoDoc badge 2021-01-04 15:57:51 +08:00
Marten Seemann
4c079b9ede Merge pull request #2978 from lucas-clemente/fix-openstreamsync-cancelation-test
make the OpenStreamSync cancelation test less flaky
2021-01-04 15:32:19 +08:00
Marten Seemann
b022d04b0f make the OpenStreamSync cancelation test less flaky 2021-01-04 15:12:49 +08:00
Marten Seemann
405297ba8d fix flaky qlog test 2021-01-04 14:29:47 +08:00
Marten Seemann
6a7f1de261 Merge pull request #2979 from lucas-clemente/pre-commit-hook
add some useful pre-commit hooks
2021-01-03 21:00:51 +08:00
Marten Seemann
12571e3668 add a pre-commit hook that check that files are properly gofumpt-ed 2021-01-02 18:27:18 +08:00
Marten Seemann
c4789ccb28 add a pre-commit hook that checks that tests are not focussed 2021-01-02 18:02:20 +08:00
Marten Seemann
d9c7467b56 Merge pull request #2973 from lucas-clemente/publicize-varint
publicize QUIC varint reading and writing
2021-01-02 12:05:53 +08:00
Marten Seemann
5e7fb50223 Merge pull request #2962 from lucas-clemente/skip-scheme-check
add a http3.RoundTripOpt to skip the request scheme check
2021-01-02 12:05:19 +08:00
Marten Seemann
c78634df38 add a http3.RoundTripOpt to skip the request scheme check
Otherwise, we'll only be able to issue https requests. This is what we
usually want, but for MASQUE support, the URL will be of the form
masque://example.org.
2021-01-02 10:21:18 +08:00
Marten Seemann
a6e78498f6 Merge pull request #2967 from lucas-clemente/improve-go-mod-tidy-workflow
improve go mod tidy workflow
2021-01-02 09:49:46 +08:00
Marten Seemann
6d9aa9c9f0 Merge pull request #2970 from lucas-clemente/deadline-test-quic-config
use the standard quic.Config in the deadline tests
2021-01-02 09:49:31 +08:00
Marten Seemann
694e762e41 Merge pull request #2964 from lucas-clemente/update-golangci-lint
update golangci-lint to v1.34.1
2021-01-02 09:49:15 +08:00
Marten Seemann
f9226887b4 rename ReadVarint / WriteVarInt / VarIntLen to Read / Write / Len 2021-01-02 00:15:07 +08:00
Marten Seemann
e418ef8372 Merge pull request #2975 from lucas-clemente/update-versions-in-readme
update text about QUIC versions in the README
2021-01-02 00:11:00 +08:00
Marten Seemann
ef56c8c01c Merge pull request #2976 from lucas-clemente/enable-darwin-arm64-cross-compile
reenable cross compilation test on darwin/arm64 for Go 1.16
2021-01-02 00:10:34 +08:00
Marten Seemann
72136ee9be Merge pull request #2972 from lucas-clemente/fix-openbsd-mips64
update golang.org/x/sys to allow building on openbsd/mips64
2021-01-02 00:10:23 +08:00
Marten Seemann
428bf488d1 remove stray TODO in the http3.Server 2021-01-01 12:50:21 +08:00
Marten Seemann
4b2d54cbcd reenable cross compilation test on darwin/arm64 2021-01-01 12:43:06 +08:00
Marten Seemann
a0d6b28046 update text about QUIC versions in the README 2021-01-01 11:57:20 +08:00
Marten Seemann
11c5045065 move varint encoding / decoding to a separate package
... which is not internal.
2021-01-01 11:46:45 +08:00
Marten Seemann
71f0702237 update golang.org/x/sys to allow building on openbsd/mips64 2021-01-01 11:43:19 +08:00
Marten Seemann
770ad155f2 use the standard quic.Config in the deadline tests 2020-12-31 18:35:08 +08:00
Marten Seemann
602212e983 Merge pull request #2968 from lucas-clemente/fix-setup-go-stable
fix YAML syntax error in setup-go step
2020-12-31 12:58:39 +08:00
Marten Seemann
cc619f118e fix YAML syntax error in setup-go step 2020-12-31 12:37:59 +08:00
Marten Seemann
54666a0abb use diff instead of cmp to compare the tidied go.mod and go.sum files 2020-12-30 13:04:23 +08:00
Marten Seemann
909c92a112 explicitily set the Go version in the linting workflow
This should be set to the most recent (stable) Go version that we
support.
2020-12-30 13:03:56 +08:00
Marten Seemann
ef87f15ecb increase the maximum size of DATAGRAM frames 2020-12-30 12:53:33 +08:00
Marten Seemann
38d4d63d3c update golangci-lint to v1.34.1 2020-12-30 12:29:04 +08:00
Marten Seemann
7867e6995c fix malformed nolint comment 2020-12-30 12:29:04 +08:00
Marten Seemann
e2df1d9d15 Merge pull request #2953 from lucas-clemente/go116
add support for Go 1.16
2020-12-30 12:21:19 +08:00
Marten Seemann
57e3f55279 add support for Go 1.16 2020-12-29 11:48:02 +07:00
Marten Seemann
b47fe87e51 Merge pull request #2952 from lucas-clemente/reset-h3-uni-stream-when-type-unknown
cancel reading on unidirectional streams when the stream type is unknown
2020-12-29 07:42:24 +07:00
Marten Seemann
052d0b2124 Merge pull request #2956 from lucas-clemente/remove-duplicate-scheme-check
remove duplicate check of the URL scheme in the HTTP/3 client
2020-12-29 07:42:03 +07:00