Commit Graph

4699 Commits

Author SHA1 Message Date
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
53856bda60 Merge pull request #2663 from lucas-clemente/faulty-packet-conn-integration-test
add integration tests using faulty packet conns
2020-07-10 19:13:43 +07:00
Marten Seemann
1a0b642ac1 add integration tests using faulty packet conns 2020-07-10 18:27:41 +07:00
Marten Seemann
3dbba004f9 Merge pull request #2656 from ltucker/shutdown_deadlock
don't block sendQueue.Send() if the runloop already exited.
2020-07-10 18:26:43 +07:00
Marten Seemann
f16d474e7c Merge pull request #2664 from lucas-clemente/move-versions-out-of-the-header
move the SupportedVersions slice out of the wire.Header
2020-07-10 18:24:46 +07:00
Marten Seemann
8c66ccf0d6 Merge pull request #2660 from lucas-clemente/retire-bug-backwards-compatilibity-bug
add a flag to disable conn ID generation and the check for retired conn IDs
2020-07-10 18:22:04 +07:00
Marten Seemann
543f4791a1 Merge pull request #2667 from lucas-clemente/remove-unnecessary-client-packet-handler
put the session in the packet handler map directly (for client sessions)
2020-07-10 18:16:48 +07:00
Marten Seemann
76c854fbae Merge pull request #2666 from lucas-clemente/dont-send-write-errors
don't send write error in CONNECTION_CLOSE frames
2020-07-10 18:16:05 +07:00
Marten Seemann
fd5f555f36 put the session in the packet handler map directly (for client sessions) 2020-07-10 09:29:43 +07:00
Marten Seemann
61d8e111b1 don't send write error in CONNECTION_CLOSE frames 2020-07-09 18:09:20 +07:00
Marten Seemann
993d71fd56 move the SupportedVersions slice out of the wire.Header 2020-07-09 12:05:33 +07:00
Marten Seemann
ce5ddc050c add a flag to disable conn ID generation and the check for retired conn IDs 2020-07-09 10:40:56 +07:00
Luke Tucker
3c1e597858 don't block sendQueue.Send() if the runloop already exited.
This can lead to a deadlock where session.shutdown() never exits
because it is blocked on a Send() but the sendQueue has exited due to
a write error.
2020-07-08 09:41:22 -04:00
Marten Seemann
953f3472cf Merge pull request #2657 from lucas-clemente/fix-pto-count-on-dropping-packet-number-space
reset the PTO count before setting the timer when dropping a PN space
2020-07-08 15:38:38 +07:00
Marten Seemann
2def5abe6f Merge pull request #2651 from lucas-clemente/enforce-conn-id-retirement-packet-conn-id
enforce that a connection ID is not retired in a packet that uses that connection ID
2020-07-08 14:57:57 +07:00
Marten Seemann
33fc464bac use PROTOCOL_VIOLATION for invalid RETIRE_CONNECTION_ID frames 2020-07-08 12:24:15 +07:00
Marten Seemann
25db2166dd enforce that a conn ID is not retired in a packet that uses that conn ID 2020-07-08 12:06:57 +07:00
Marten Seemann
5227fef1a3 Merge pull request #2652 from lucas-clemente/fix-retiring-of-active-conn-id
don't retire the conn ID that's in use when receiving a retransmission
2020-07-08 12:05:15 +07:00
Marten Seemann
743ba962aa reset the PTO count before setting the timer when dropping a PN space 2020-07-08 11:51:56 +07:00
Marten Seemann
84bf12bfda Merge pull request #2649 from lucas-clemente/fix-flaky-cancelation-test
fix flaky cancelation integration test
2020-07-07 22:23:27 +07:00
Marten Seemann
37b072492f Merge pull request #2648 from lucas-clemente/fix-qlog-nil-writecloser
fix crash when the qlog callbacks returns a nil io.WriteCloser
2020-07-07 19:03:39 +07:00
Marten Seemann
7c1e5da245 Merge pull request #2645 from lucas-clemente/fix-flaky-server-test
fix flaky server test on Travis
2020-07-07 19:03:17 +07:00
Marten Seemann
34f0c93e88 don't retire the conn ID that's in use when receiving a retransmission 2020-07-06 17:54:00 +07:00
Marten Seemann
b5a3ff028d fix flaky cancellation integration test 2020-07-06 15:28:29 +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
d4720e43c7 fix a typo in the logging package test suite 2020-07-06 13:24:47 +07:00
Marten Seemann
084e4feb9b fix flaky server test on Travis 2020-07-06 11:21:08 +07:00
Marten Seemann
05f9428b34 Merge pull request #2643 from lucas-clemente/logging-types
introduce type aliases in the logging package
2020-07-06 09:53:15 +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
fea17a671b introduce type aliases for internal types in the logging package 2020-07-06 08:47:42 +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
673a9f40e4 Merge pull request #2644 from lucas-clemente/rename-frame-fields
rename frame fields to the names used in the draft
2020-07-06 08:25:51 +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
00f8028e52 Merge pull request #2638 from lucas-clemente/logging-tracer
split the qlog package into a logging and a qlog package, use a tracer interface in the quic.Config
2020-07-01 17:09:47 +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
7fdace490c rename qlogger (member) variables to tracer 2020-07-01 16:53:45 +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
7c42d7941a Merge pull request #2642 from lucas-clemente/fix-http-request-body-read-with-eof
fix HTTP request writing if the Request.Body reads data and returns EOF
2020-07-01 15:49:37 +07:00
Marten Seemann
b8f36f35d5 fix HTTP request writing if the Request.Body reads data and returns EOF 2020-07-01 15:31:24 +07:00
Marten Seemann
5eb2bb8b4c Merge pull request #2640 from lucas-clemente/rewrite-version-negotiation-handling
handle Version Negotiation packets in the session
2020-07-01 15:24:19 +07:00
Marten Seemann
cabfada038 Merge pull request #2634 from lucas-clemente/increase-initial-packet-size
increase the packet size of the client's Initial packet
2020-07-01 15:18:31 +07:00
Marten Seemann
0ea581473e Merge pull request #2637 from lucas-clemente/server-assertion
introduce an assertion in the server
2020-07-01 15:18:17 +07:00