Commit Graph

198 Commits

Author SHA1 Message Date
Marten Seemann
876ab1d531 introduce a function to distinguish between IPv4 and IPv6 addresses 2020-09-14 17:01:34 +07:00
Marten Seemann
13fa0bcdd1 implement writing of ACK frames containing ECN counts 2020-09-14 17:01:34 +07:00
Marten Seemann
3a4de205b0 add the AEAD_LIMIT_REACHED error code 2020-09-14 14:07:55 +07:00
Marten Seemann
10797cfc79 add the KEY_UPDATE_ERROR error code 2020-09-10 18:14:33 +07:00
Marten Seemann
dbaacd49bd add a logging event for dropping 1-RTT keys 2020-09-09 23:53:47 +07:00
Marten Seemann
6e1c756ec2 Merge pull request #2763 from lucas-clemente/always-qlog-1rtt-key-generation
always qlog the generation of 1-RTT key updates
2020-09-09 23:17:56 +07:00
Marten Seemann
bccf857b5d always qlog the generation of 1-RTT key updates 2020-09-09 13:37:30 +07:00
Marten Seemann
704bd78445 move the PacketHeader struct from logging to qlog package 2020-09-09 13:17:59 +07:00
Marten Seemann
5cf72e2f34 implement qlogging of the congestion_state_updated event 2020-07-23 11:54:00 +07:00
Marten Seemann
0b7efe10d1 trace congestion state changes 2020-07-23 11:53:59 +07:00
Marten Seemann
741dc28d74 move the RTTStats to the utils package
The RTTStats are used by the logging package. In order to instrument the
congestion package, the RTTStats can't be part of that package any more
(to avoid an import loop).
2020-07-23 11:53:08 +07:00
Marten Seemann
0c551c893c trace packets that are sent outside of a connection 2020-07-16 08:20:36 +07:00
Marten Seemann
dc245ca6a3 trace dropped packets in the server 2020-07-15 20:33:58 +07:00
Marten Seemann
ee24d3899e simplify the Tracer interface by combining the TracerFor... methods 2020-07-11 13:22:52 +07:00
Marten Seemann
a1bb39d6ab introduce a protocol.StatelessResetToken 2020-07-10 19:55:20 +07:00
Marten Seemann
a4679bc02e also pass the stateless reset token by value to the tracer 2020-07-10 19:48:53 +07:00
Marten Seemann
f93708aca8 introduce a logging.CloseReason to log the reason a session was closed
This also allows us to get rid of the ReceivedStatelessReset() method.
2020-07-10 19:23:32 +07:00
Marten Seemann
7d6ce4ea45 rename the logging.CloseReason to TimeoutReason 2020-07-10 19:17:21 +07:00
Marten Seemann
993d71fd56 move the SupportedVersions slice out of the wire.Header 2020-07-09 12:05:33 +07:00
Marten Seemann
6dcc88536d fix crash when the qlog callbacks returns a nil io.WriteCloser 2020-07-06 15:03:48 +07:00
Marten Seemann
ed120f670c add logging aliases for frames, create a logging.STREAM and CRYPTO frame 2020-07-06 09:21:32 +07:00
Marten Seemann
d4dc08b208 move all stringifation of qlog events to the qlog package 2020-07-06 08:26:37 +07:00
Marten Seemann
838dd6e81a rename StreamFrame.FinBit to Fin 2020-07-02 16:41:43 +07:00
Marten Seemann
865332015c rename ResetStreamFrame.ByteOffset to FinalSize 2020-07-02 16:41:43 +07:00
Marten Seemann
cc340b2887 rename StreamDataBlockedFrame.DataLimit to MaximumStreamData 2020-07-02 16:41:43 +07:00
Marten Seemann
fa07078d81 rename DataBlockedFrame.DataLimit to MaximumData 2020-07-02 16:41:43 +07:00
Marten Seemann
5466de6565 rename MaxStreamDataFrame.ByteOffset to MaximumStreamData 2020-07-02 16:41:43 +07:00
Marten Seemann
f4519cfd32 rename MaxDataFrame.ByteOffset to MaximumData 2020-07-02 16:41:43 +07:00
Marten Seemann
ac606222e0 replace the GetLogWriter quic.Config option by a Tracer interface 2020-07-01 16:57:03 +07:00
Marten Seemann
4121ea84f4 rename the logging.Tracer to ConnectionTracer 2020-07-01 16:57:01 +07:00
Marten Seemann
7f6eca84da replace the logging.Export() method by a Close() method 2020-07-01 16:54:44 +07:00
Marten Seemann
78ba619a0b split the qlog package into a logging and a qlog package 2020-07-01 16:49:24 +07:00
Marten Seemann
2e9b92ab69 rename the SERVER_BUSY error to CONNECTION_REFUSED 2020-06-10 12:13:40 +07:00
Marten Seemann
f1924b3182 qlog the retry_source_connection_id TP 2020-05-29 19:50:14 +07:00
Marten Seemann
a9dc1e49ab qlog the initial_source_connection_id TP 2020-05-29 19:50:14 +07:00
Marten Seemann
193f18bbe5 always qlog the original_destination_connection_id for the server's TPs 2020-05-29 19:50:14 +07:00
Marten Seemann
7e62a2fecc rename original_connection_id to original_destination_connection_id TP 2020-05-29 19:50:14 +07:00
Marten Seemann
8d00ec135e Merge pull request #2569 from lucas-clemente/drop-duplicate-packets
drop duplicate packets
2020-05-29 16:39:46 +07:00
Marten Seemann
6cea2f8a65 fix flaky qlog unit tests 2020-05-27 10:03:36 +07:00
Marten Seemann
440ff107a3 drop duplicate packets
Duplicate detection uses the same data structure that is used to track
received packets to generate ACK frames. That means that after an old
ACK range has been pruned, a severly delayed packet might be incorrectly
detected as a duplicate.
As we wouldn't have acknowledged receipt of this packet, this situation
would have resulted in a retransmission by the peer anyway, so dropping
the packet won't cause a big regression.
2020-05-27 09:20:51 +07:00
Marten Seemann
dc3c96debf qlog session timeouts 2020-04-17 08:23:25 +07:00
Marten Seemann
16e3ddb196 Merge pull request #2498 from lucas-clemente/fix-qlog-time-on-ci
use the TIMESCALE_FACTOR in the qlog tests
2020-04-16 16:18:40 +07:00
Marten Seemann
02c6f0c2d9 use the TIMESCALE_FACTOR in the qlog tests 2020-04-16 16:01:17 +07:00
Marten Seemann
b31f3356d3 Merge pull request #2493 from lucas-clemente/qlog-version-negotiation
qlog version negotiation packets
2020-04-16 15:51:49 +07:00
Marten Seemann
30618a31fe fix qlogging of packet headers 2020-04-16 09:52:19 +07:00
Marten Seemann
74c9bd6031 qlog the supported versions of a version negotiation packet 2020-04-16 09:50:34 +07:00
Marten Seemann
416dc485f8 add a qlog method to log version negotiation packets 2020-04-16 09:50:34 +07:00
Marten Seemann
5bd6252616 Merge pull request #2480 from lucas-clemente/qlog-dropped-retry
qlog dropped Retry packets
2020-04-16 09:31:47 +07:00
Marten Seemann
dfb91ab21a Merge pull request #2485 from lucas-clemente/fix-loss-timer-mutex
fix locking of mutex when qlogging the setting of the loss timer
2020-04-16 09:27:20 +07:00
Marten Seemann
24508a3d39 qlog dropped Retry packets 2020-04-12 19:26:30 +07:00