Commit graph

3488 commits

Author SHA1 Message Date
Marten Seemann
dd8c590b13 add methods to add and remove reset tokens to the packet handler map 2019-03-08 18:09:37 +09:00
Marten Seemann
733dcb75eb rename the methods of the sessionRunner interface 2019-03-08 18:09:36 +09:00
Marten Seemann
759cd289c9 accept stateless resets for connection with zero-length connection IDs 2019-03-08 18:08:09 +09:00
Marten Seemann
79cd3235f8 log the stateless reset token in the transport parameters 2019-03-08 18:08:09 +09:00
Marten Seemann
a92ba989cb
Merge pull request #1818 from lucas-clemente/rework-idle-timeout
rework idle timeout
2019-03-08 18:05:40 +09:00
Marten Seemann
5b27076a4c return the local TLS error, but don't send it on the wire 2019-03-08 18:02:43 +09:00
Marten Seemann
ae12852e4c add a message to crypto errors
The string representation varies depending on the message:
* if there's no message, the TLS alert is used
* if there's a message, it is used instead
2019-03-08 18:02:43 +09:00
Marten Seemann
373db3c153 send the correct error code for crypto errors 2019-03-08 18:02:43 +09:00
Marten Seemann
f9a21275a4 use the string representation of the TLS alert for crypto errors 2019-03-08 18:02:43 +09:00
Marten Seemann
e5303df419 implement a string representation for crypto error 2019-03-08 18:02:36 +09:00
Marten Seemann
ab47ba1021 fix error string representation for errors without a message 2019-03-08 17:35:25 +09:00
Marten Seemann
4d7d951782 add an integration test for the duration of the idle timeout 2019-03-08 17:32:50 +09:00
Marten Seemann
ef55a44bdb restart the idle timeout when sending the first retransmittable packet 2019-03-08 17:32:50 +09:00
Marten Seemann
7bd9844d38
Merge pull request #1816 from lucas-clemente/error-logging
improve error logging
2019-03-08 16:48:29 +09:00
Marten Seemann
fd69409164
Merge pull request #1815 from lucas-clemente/no-frames-in-docs
don't mention specific frame types in the documentation
2019-03-08 16:48:05 +09:00
Marten Seemann
3cd2d80cac improve logging of errors in the session 2019-03-07 14:35:34 +09:00
Marten Seemann
8118beab67 remove the error return value from session.handleCloseError 2019-03-07 14:01:41 +09:00
Marten Seemann
f75b424454 don't mention specific frame types in the documentation 2019-03-07 13:45:53 +09:00
Marten Seemann
e66c216a17
Merge pull request #1812 from lucas-clemente/error-codes
use the IETF QUIC error codes
2019-03-07 07:35:31 +09:00
Marten Seemann
662041649f use the error names from the draft 2019-03-06 13:45:05 +09:00
Marten Seemann
9c09e84765 use IETF QUIC transport error codes 2019-03-06 13:43:18 +09:00
Marten Seemann
966b00dd3d
Merge pull request #1808 from lucas-clemente/fix-coalesed-packet-buffer-usage
fix packet buffer usage when handling coalesced packets
2019-03-05 18:25:57 +09:00
Marten Seemann
5b19cc0ff4
Merge pull request #1802 from lucas-clemente/timeout-errors
don't send timeout errors on the wire
2019-03-05 18:06:00 +09:00
Marten Seemann
5ac7d7f750
Merge pull request #1803 from lucas-clemente/fix-racy-test-skipping
fix skipping of racy version negotiation integration test
2019-03-05 18:04:06 +09:00
Marten Seemann
33bf79c735 fix packet buffer usage when handling coalesced packets 2019-03-05 18:03:38 +09:00
Marten Seemann
896d2da380
Merge pull request #1805 from lucas-clemente/return-timeout-errors
consistently return timeout errors after timeouts
2019-03-05 17:31:48 +09:00
Marten Seemann
52cd372294
Merge pull request #1809 from lucas-clemente/go-generate
run go generate ./...
2019-03-05 17:12:55 +09:00
Marten Seemann
014753ea1d add documentation about timeout errors 2019-03-05 16:22:53 +09:00
Marten Seemann
b65bc7d4d8 add an integration test for dial errors 2019-03-05 16:22:53 +09:00
Marten Seemann
9ed1a2e3e1 add integration test that we return timeout errors after an idle timeout 2019-03-05 16:22:48 +09:00
Marten Seemann
5e34cb1d71 run go generate ./... 2019-03-05 13:42:56 +09:00
Marten Seemann
ae6d237df8 fix skipping of racy version negotiation integration test 2019-03-02 18:33:48 +09:00
Marten Seemann
c03a8aaa97 don't wrap close errors in the streams map
A close error might for example be a timeout error. We want to preserve
the fact that it satisfies the net.Error interface and that Timeout() ==
true.
2019-03-02 17:58:18 +09:00
Marten Seemann
47c156c59b don't send timeout errors on the wire 2019-03-02 16:40:03 +09:00
Marten Seemann
42ea34048a
Merge pull request #1800 from lucas-clemente/tls-errors
use the TLS error codes
2019-03-02 16:30:57 +09:00
Marten Seemann
59e9142426 retrieve the TLS alert from qtls when the handshake fails 2019-03-02 08:56:42 +09:00
Marten Seemann
e2dd9eaf58
Merge pull request #1799 from lucas-clemente/go-mod
add Go mod support
2019-03-02 08:28:49 +09:00
Marten Seemann
c00eb1f5b5 add Go mod support 2019-03-01 10:23:27 +09:00
Marten Seemann
d28794a944
Merge pull request #1798 from lucas-clemente/linter-fixes
use GolangCI-Lint instead of gometalinter
2019-02-28 22:35:24 +09:00
Marten Seemann
b52d45a1e5 use GolangCI-Lint instead of gometalinter 2019-02-27 20:51:50 +09:00
Marten Seemann
9b5a20e772 remove some unused functions 2019-02-27 19:31:53 +09:00
Marten Seemann
fbe8844006 remove some unneccessary type conversions 2019-02-27 19:30:55 +09:00
Marten Seemann
1e796fed4f
Merge pull request #1796 from lucas-clemente/go-1.12-final
update CIs to Go 1.12
2019-02-27 16:26:37 +09:00
Marten Seemann
4ae5e1908c
Merge pull request #1794 from lucas-clemente/coalesced-packets
move coalesced packet handling to the session
2019-02-27 09:20:16 +08:00
Marten Seemann
2f4cb5ca1a
Merge pull request #1795 from lucas-clemente/idle-timeout-milliseconds
change the idle timeout transport parameter to milliseconds
2019-02-27 09:09:29 +08:00
Marten Seemann
02e851bd11 cut coalesed packets in the session 2019-02-27 10:03:34 +09:00
Marten Seemann
4e3d006871 update CIs to Go 1.12 2019-02-27 09:51:11 +09:00
Marten Seemann
6c726ccba3 change the idle timeout transport parameter to milliseconds 2019-02-23 10:37:08 +08:00
Marten Seemann
df34e4496e identify version negotiation packets without parsing the header 2019-02-23 10:24:42 +08:00
Marten Seemann
14426dfa12 implement a function to parse the destination connection ID of a packet 2019-02-23 10:24:42 +08:00