Commit Graph

1608 Commits

Author SHA1 Message Date
Lucas Clemente
f33e12831e Improve drop test scopes 2017-06-06 11:45:18 +02:00
Lucas Clemente
67a5a1bda5 Merge pull request #635 from lucas-clemente/gosimple
Run gosimple on our tree
2017-06-06 09:49:37 +02:00
Lucas Clemente
4f93969101 Run gosimple on our tree 2017-06-06 09:33:46 +02:00
Marten Seemann
2f551a7cbe Merge pull request #631 from lucas-clemente/fix-620
simplify the dialing logic in the h2quic client, fix mutex in roundtripper held to long
2017-06-06 09:12:37 +02:00
Marten Seemann
c122428cb6 simply the dialing in the h2quic client
Fixes #620.
Dialing is now done lazily, when a request is executed.
2017-06-04 09:41:51 +02:00
Marten Seemann
c2a89e6b78 improve error message in the h2quic client 2017-06-03 17:41:17 +02:00
Marten Seemann
9054e5205f don't pass the roundtripper to the h2quic client 2017-06-02 23:08:14 +02:00
Marten Seemann
4d26d8bbd0 Merge pull request #630 from lucas-clemente/fix-521
add a quic.Config option to set the handshake timeout
2017-06-02 18:42:19 +02:00
Marten Seemann
4c3d4960bb privatize the h2quic client 2017-06-01 20:14:07 +02:00
Marten Seemann
37366ef882 add a handshake integration test for the handshake timeout 2017-06-01 20:08:07 +02:00
Marten Seemann
13a25a5ba5 use the correct error code for handshake timeouts 2017-06-01 20:02:57 +02:00
Marten Seemann
9040fd25e7 add a quic.Config option to set the handshake timeout 2017-06-01 19:47:28 +02:00
Marten Seemann
a025e89f03 Merge pull request #626 from lucas-clemente/fix-538
add tests measuring how many RTTs a handshake takes
2017-06-01 19:35:48 +02:00
Lucas Clemente
d7f7d234e7 Merge pull request #629 from twdkeule/add-multiple-drop-test
Added possibility to drop multiple packets in a row.

Fixes #575
2017-05-31 16:01:24 +02:00
Thomas De Keulenaer
0e0d62e809 Drop focus 2017-05-31 15:40:29 +02:00
Thomas De Keulenaer
a07eaac1fd Added possibility to drop multiple packets in a row. 2017-05-29 12:15:02 +02:00
Marten Seemann
f2ada4eef1 add tests using the source address validation 2017-05-27 18:53:28 +08:00
Marten Seemann
6b3165928f add tests measuring how many RTTs a handshake takes 2017-05-27 13:28:44 +08:00
Marten Seemann
15a51c06c3 Merge pull request #627 from lucas-clemente/fix-303
add a quic.Config option to verify source address tokens
2017-05-27 13:23:50 +08:00
Marten Seemann
f1985b98ff add a Changelog entry for the STK validation quic.Config option 2017-05-27 11:58:57 +08:00
Marten Seemann
6144ebed21 don’t panic if the STK doesn’t contain any data 2017-05-26 23:26:42 +08:00
Marten Seemann
ac21fc3349 Merge pull request #619 from lucas-clemente/fix-444
improve logging
2017-05-26 17:53:03 +08:00
Marten Seemann
0dbbb8d1b3 use the standard library log package for logging 2017-05-25 20:31:45 +08:00
Marten Seemann
ef4699adef use ASN1 to marshal source address tokens 2017-05-25 11:49:24 +08:00
Marten Seemann
afc9b11715 use a prefix to distinguish IPs and net.Addrs in source address tokens 2017-05-25 11:49:24 +08:00
Marten Seemann
87df63dd5f add a quic.Config option to verify source address tokes 2017-05-25 11:49:19 +08:00
Marten Seemann
eb72b494b2 generate valid tokens for remote addresses that are not UDP addresses 2017-05-20 23:27:40 +08:00
Marten Seemann
8e01921495 move comparison of the source address in the STK to the STKGenerator 2017-05-20 23:27:40 +08:00
Marten Seemann
9562df5838 move the STK generation from the ServerConfig to a separate struct 2017-05-20 23:27:40 +08:00
Marten Seemann
6cc6d49a10 save the STK expiry time as a time.Duration 2017-05-20 23:27:40 +08:00
Marten Seemann
81985f44bd move the STK expiration check to the cryptoSetup 2017-05-20 23:27:39 +08:00
Marten Seemann
e68e2d287a pass remote address to cryptoSetupServer 2017-05-20 23:27:38 +08:00
Marten Seemann
8489c94f4d Merge pull request #622 from lucas-clemente/travis-goversion
always use current minor Go version for Travis
2017-05-16 16:18:08 +08:00
Marten Seemann
f16423635a Merge pull request #621 from lucas-clemente/fix-605
remove unsafe from the session tests for the crypto setup
2017-05-16 16:15:55 +08:00
Marten Seemann
7e256e0ebe log timestamps 2017-05-16 12:19:36 +08:00
Marten Seemann
fa518c244e always use current minor Go version for Travis 2017-05-16 11:58:50 +08:00
Marten Seemann
996fad14f8 remove unsafe from the session tests for the crypto setup 2017-05-16 10:55:55 +08:00
Marten Seemann
82ce3b221b Merge pull request #613 from lucas-clemente/new-api
implement a new API
2017-05-16 10:26:54 +08:00
Marten Seemann
6623abf3d1 return handshake errors in h2quic Client.Do 2017-05-16 00:56:10 +08:00
Marten Seemann
74f607ce21 implement DialAddrNonFWSecure for the client 2017-05-16 00:56:09 +08:00
Marten Seemann
33a9b5aae4 add more tests for Dial in the h2quic client 2017-05-16 00:56:09 +08:00
Marten Seemann
9fad63ff50 improve client tests
Use a mock newClientSession. That way, it’s a lot easier to test dialing
new connections.
2017-05-16 00:56:09 +08:00
Marten Seemann
8ba1bd817f move client session tests to separate place 2017-05-16 00:56:09 +08:00
Marten Seemann
889d3b38f8 remove the cryptoChangeCallback from the server 2017-05-16 00:56:09 +08:00
Marten Seemann
2bfa7e59cb implement DialNonFWSecure for the client 2017-05-16 00:56:09 +08:00
Marten Seemann
e6aeb143a7 simplify the blocking logic for the non-forward-secure session 2017-05-16 00:56:08 +08:00
Marten Seemann
cb8bea73c7 implement a non-forward-secure session 2017-05-16 00:56:08 +08:00
Marten Seemann
fb77a79b2b close the response chan on header stream erros in h2quic client 2017-05-16 00:56:08 +08:00
Marten Seemann
b7d7a8447d remove the ConnState and the ConnStateCallback from the quic.Config 2017-05-16 00:56:08 +08:00
Marten Seemann
612323985b remove the ConnStateCallback from the client
Dial and DialAddr return once the connection is forward secure. There is
currently no option to get the session earlier, this will be added later.
2017-05-16 00:56:02 +08:00