Commit Graph

1289 Commits

Author SHA1 Message Date
Marten Seemann
3588cddd43 allow 0-RTT resumption if the server's stream limit was increased 2021-03-11 21:37:40 +08:00
Marten Seemann
7676e455c5 add a function to tell if a packet is a 0-RTT packet 2021-03-11 21:05:41 +08:00
Marten Seemann
b2c2e4940f Merge pull request #3066 from lucas-clemente/zero-rtt-rejection
require the application to handle 0-RTT rejection
2021-03-11 21:04:14 +08:00
Marten Seemann
db9807d779 Merge pull request #2966 from lucas-clemente/increase-max-datagram-frame-size
increase the maximum size of DATAGRAM frames
2021-03-10 12:08:00 +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
97ab014479 don't retransmit 0-RTT packets when 0-RTT is rejected 2021-03-09 17:59:49 +08:00
Marten Seemann
a04a0072fb add a function to reset the connection flow controller 2021-03-09 17:59:48 +08:00
Marten Seemann
1113892489 remove stray struct equality check
This check was moved to qtls.
2021-03-09 16:17:41 +08:00
Marten Seemann
c802ebe026 Merge pull request #3060 from lucas-clemente/check-active-conn-id-limit-for-0rtt
only accept 0-RTT it the active_connection_id_limit didn't change
2021-03-09 15:58:53 +08:00
Marten Seemann
f513437854 Merge pull request #3062 from lucas-clemente/fix-retry-draft-34
fix retry key and nonce for draft-34
2021-03-04 11:13:34 +08:00
Marten Seemann
bd172b2a5a fix retry key and nonce for draft-34 2021-03-03 23:01:42 +08:00
Marten Seemann
35da77afd1 only accept 0-RTT it the active_connection_id_limit didn't change 2021-03-03 21:52:45 +08:00
Marten Seemann
765d26f132 don't reduce the congestion window when a path MTU probe packet is lost 2021-03-03 12:00:52 +08:00
Marten Seemann
82ac6dcf6d rename MaxReceivePacketSize to MaxPacketBufferSize
We use the same buffer size for sending and receiving packets.
2021-03-03 12:00:14 +08:00
Marten Seemann
91a314258d use the actual maximum packet size in the pacer 2021-03-03 12:00:14 +08:00
Marten Seemann
dd8b21f264 use the actual maximum packet size in the Reno congestion controller 2021-03-03 12:00:14 +08:00
Marten Seemann
8895a79e30 initialize the slow start threshold to infinity 2021-03-03 12:00:14 +08:00
Marten Seemann
eea0b1eacd rename MaxPacketSizeIPv{4,6} to InitialPacketSizeIPv{4,6} 2021-03-03 12:00:14 +08:00
Marten Seemann
ac16ee565b Merge pull request #3049 from lucas-clemente/mockgen-source-mode
update gomock to v1.5.0, use mockgen source mode
2021-03-02 21:27:48 +08:00
Marten Seemann
1c9977d8d6 Merge pull request #3054 from lucas-clemente/trace-dropped-0rtt-keys
trace dropping of 0-RTT keys
2021-03-02 21:27:32 +08:00
Marten Seemann
ca18ba6f81 Merge pull request #3052 from lucas-clemente/randomized-packet-receive-test
add a randomized test for the received_packet_history
2021-03-02 21:26:41 +08:00
Marten Seemann
3e8e6b2e36 fix documentation of the default MaxReceiveConnectionFlowControlWindow 2021-03-01 11:33:42 +08:00
Marten Seemann
be4dc49114 fix documentation of the default MaxReceiveStreamFlowControlWindow 2021-03-01 11:33:15 +08:00
Marten Seemann
110f949441 trace dropping of 0-RTT keys 2021-03-01 10:37:31 +08:00
Marten Seemann
75f49662c0 add a randomized test for the received_packet_history 2021-02-24 13:37:50 +08:00
q191201771
de0a6d4bbe refactor merge packet number ranges 2021-02-24 11:54:33 +08:00
Marten Seemann
efe6d02bef use mockgen source mode 2021-02-20 09:59:44 +08:00
Marten Seemann
383f1a6e89 update gomock to v1.5.0 2021-02-20 09:33:43 +08:00
Marten Seemann
3c0726e132 move the random number generator to the utils package 2021-02-18 09:58:34 +08:00
Marten Seemann
62a906de3c update Go to 1.16, drop support for 1.14 2021-02-17 12:17:46 +08:00
Marten Seemann
fd724f8d16 Merge pull request #3036 from lucas-clemente/no-0x-in-conn-id
log connection IDs without the 0x prefix
2021-02-13 19:33:03 +08:00
Marten Seemann
9dba8141ba use the updated TLS extension code point for draft-34 2021-02-11 09:46:00 +08:00
Marten Seemann
f01a2c6b96 use the updated salt for draft-34 2021-02-11 09:46:00 +08:00
Marten Seemann
d5025b1373 add a version number for draft-34 2021-02-11 09:46:00 +08:00
Marten Seemann
6ece64d8a5 log connection IDs without the 0x prefix 2021-02-11 09:45:40 +08:00
Marten Seemann
b906364469 fix qtls imports in mockgen generated mocks 2021-02-11 09:26:25 +08:00
Marten Seemann
868127b6b4 Merge pull request #2940 from lucas-clemente/packet-number-skipping-cryptographic-random
use cryptographic random for determining skipped packet numbers
2021-01-17 14:38:16 +08:00
Marten Seemann
4bdccca0cf Merge pull request #2980 from lucas-clemente/fix-pacing-deadline-interpretation
fix interpretation of time.Time{} as a pacing deadline
2021-01-16 14:08:27 +08:00
Marten Seemann
33d058f4ee fix interpretation of time.Time{} as a pacing deadline
The pacer returns the zero value of time.Time when a packet can be sent
immediately. The session uses the zero value to unset the pacing
deadline.
2021-01-16 13:35:21 +08:00
Marten Seemann
d04662a964 add a RestoredTransportParameters method to the logging interface 2021-01-15 17:13:46 +08:00
Marten Seemann
fdbd5baed5 Merge pull request #2990 from lucas-clemente/improve-zero-rtt-queue
improve 0-RTT queue
2021-01-15 17:06:35 +08:00
Marten Seemann
cafa7c45d0 Merge pull request #2995 from lucas-clemente/simplify-tp-parsing-switch
simplify switch statement in the transport parameter parser
2021-01-15 17:05:59 +08:00
Marten Seemann
b50933737d Merge pull request #2996 from lucas-clemente/remove-unneeded-overflow-check
remove unneeded overflow check when parsing the max_ack_delay
2021-01-15 17:04:01 +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
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
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
f9226887b4 rename ReadVarint / WriteVarInt / VarIntLen to Read / Write / Len 2021-01-02 00:15:07 +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
ef87f15ecb increase the maximum size of DATAGRAM frames 2020-12-30 12:53:33 +08:00