Commit Graph

234 Commits

Author SHA1 Message Date
Marten Seemann
511ff00881 Merge pull request #1167 from lucas-clemente/ietf-drop-tests
add self integration tests with dropped packets
2018-05-30 17:16:40 +08:00
Marten Seemann
c4c2fd96dc add integration tests with dropped packets during the handshake
The tests simulate three different application profiles:
1. the client speaks first (e.g. sends a request)
2. the server speaks first
3. nobody speaks (i.e. a preconnect)
2018-05-29 21:10:28 +08:00
Marten Seemann
6b82e46e0c use the prefix logger for client, server and proxy 2018-05-29 20:52:54 +08:00
Marten Seemann
52d31dd7ef implement the new header format
Currently, we're only sending and accepting packets with matching source
and destination connection IDs.
2018-04-19 13:46:54 +09:00
Marten Seemann
1a035a265c change the type of Connection ID to byte slice 2018-04-18 22:41:24 +09:00
Marten Seemann
948eef3e42 create a logger interface and use it everywhere 2018-04-04 13:03:28 +07:00
Marten Seemann
ce0b33d2ff use the maximum receive packet size, not send packet size, in the proxy 2018-03-09 18:32:43 +07:00
Marten Seemann
a588b9e140 make golint happier 2018-03-02 16:58:19 +07:00
Marten Seemann
d58b7bb4fd reenable the version negotiation integration tests 2018-02-26 14:43:23 +08:00
Marten Seemann
03171bc725 remove duplicate log statement in the proxy 2018-02-24 10:19:53 +08:00
Marten Seemann
f3323c21f9 add integration tests using many unidirectional streams 2018-02-24 09:17:10 +08:00
Marten Seemann
b6c41464c6 run varcheck in gometalinter 2018-02-23 22:39:08 +08:00
Marten Seemann
58b20c6009 make the number of incoming streams configurable, for IETF QUIC 2018-02-23 22:15:31 +08:00
Marten Seemann
4e20ae142c Merge pull request #1190 from lucas-clemente/proxy-closing
properly close the UDP proxy used in the integration tests
2018-02-22 19:59:13 +08:00
Marten Seemann
b1095d0661 properly close the UDP proxy used in the integration tests 2018-02-22 19:13:07 +08:00
Marten Seemann
e181f92917 add some debug logging for the proxy 2018-02-22 17:55:48 +08:00
Marten Seemann
d0ffeac801 also run the integration tests using many streams with IETF QUIC 2018-02-06 07:42:31 +08:00
Marten Seemann
d671cf134c don't force clients to use tls.Config.InsecureSkipVerify when using mint
mint recently implemented certificate verification.
This reverts commit d76f5a839c.
2018-02-02 08:18:29 +08:00
Marten Seemann
d76f5a839c force clients to set tls.Config.InsecureSkipVerify when using mint
mint doesn't verify the certificate chain. This change forces users of
quic-go to acknowledge mint's insecure behavior by explicitely setting
InsecureSkipVerify.
2018-01-26 21:31:44 +11:00
Marten Seemann
3247d04d4a fix Chrome integration tests on Travis 2018-01-09 10:45:16 +07:00
Marten Seemann
99a2853e7d remove non forward-secure dialing
This was broken for a long time, and won't be available when using the
TLS 1.3 handshake.
2018-01-02 23:26:55 +07:00
Marten Seemann
e4e74e0873 properly stop the testserver at the end of a test in integration tests 2017-12-20 21:19:00 +07:00
Marten Seemann
96571b56e5 wait for serve() to return before returning from server.Close() 2017-12-20 16:59:38 +07:00
Marten Seemann
84ea38c243 fix concurrent streams integration test
This test actually never worked. stream.Write blocks until the data has
been sent out, so we never opened the maximum number of concurrent
streams.
2017-12-12 22:58:23 +07:00
Marten Seemann
39b7a7e0a9 add an integration tests concurrently opening and closing many streams 2017-12-06 10:24:39 +07:00
Marten Seemann
0000fe6de7 fix flaky proxy shutdown test 2017-11-07 10:14:06 +07:00
Marten Seemann
095c29dc2c drop support for QUIC 37 and 38 2017-11-07 00:23:53 +07:00
Marten Seemann
66e4da3031 add more integration tests for the handshake 2017-11-04 22:48:16 +07:00
Marten Seemann
43c23ff5fa fix client handshake failure when the server supports unknown versions 2017-11-02 17:41:06 +07:00
Marten Seemann
e810c097da remove the retries for the Chrome integration tests 2017-11-02 16:18:29 +07:00
Marten Seemann
b8d1ffef13 fix host resolver rule in Chrome integration test
This was the reason the Chrome integration tests have been failing
recently.
2017-11-01 22:26:29 +07:00
Marten Seemann
d98a11bb35 save version numbers such that can be written in big endian
This makes the version number representation consistent with the IETF
draft.
2017-10-27 17:24:24 +07:00
Marten Seemann
4556ad01e5 use the new packet header for connections using TLS 2017-10-27 16:54:47 +07:00
Marten Seemann
f5acb690d3 simplify the maximum stream limit 2017-10-20 17:35:30 +07:00
Marten Seemann
5504c47ca5 reduce the maximum packet size of sent packets to 1200 bytes
This is the value the IETF draft mandates for implementations that don't
do PMTUD.
2017-10-18 14:14:49 +07:00
Marten Seemann
47d87740ae add an integration test for invalid certificates 2017-10-02 16:47:40 +08:00
Marten Seemann
9cb7480050 rename connection ID truncation to connection ID omission 2017-09-29 22:52:54 +07:00
Marten Seemann
d9abbb6575 run the self integration tests with the TLS handshake 2017-09-29 17:35:28 +07:00
Marten Seemann
55c35a3c4e add an integration test for the TLS handshake 2017-09-28 15:51:59 +07:00
Marten Seemann
6dde979f8f implement a string representation of the version number
This will be useful as soon as we start supporting non-gQUIC versions.
2017-09-28 15:19:12 +07:00
Marten Seemann
faa8a1ec1a Merge pull request #837 from lucas-clemente/rename-stk-to-cookie
rename the STK to Cookie
2017-09-22 19:57:27 +07:00
Marten Seemann
265c35c2eb rename the STK to Cookie 2017-09-22 18:58:04 +07:00
Marten Seemann
d4c6de9377 actually use the log file set as a flag in the integration tests 2017-09-22 18:50:13 +07:00
Marten Seemann
039edc1ccd add an integration test for version negotiation 2017-09-15 17:28:03 +07:00
Marten Seemann
0c26a6eaf2 add an integration test for dropped packets during the handshake 2017-09-12 15:39:59 +07:00
Marten Seemann
1993ce7228 add drop tests with stochastically dropped packets 2017-09-12 15:36:49 +07:00
Marten Seemann
142abb08b3 refactor drop tests, add test with dropped packets in both directions 2017-09-12 15:36:49 +07:00
Marten Seemann
792047a2c5 Merge pull request #819 from lucas-clemente/server-tests-quic-versions
run integration tests with the quic_server with all supported versions
2017-09-12 10:31:29 +02:00
Marten Seemann
3cc34a3ae7 don't parse the Public Header in the proxy 2017-09-12 14:42:27 +07:00
Marten Seemann
7ba9fb0f8b use a kernel determined server address in proxy tests
Now we can execute the proxy tests in parallel without running into
"address already in use" errors.
2017-09-12 14:38:37 +07:00