Commit Graph

633 Commits

Author SHA1 Message Date
Marten Seemann
3ef33d7cd4 exclude autogenerated file from code coverage reports 2016-06-07 01:18:32 +07:00
Lucas Clemente
0e3d7ab60d fix flaky udp proxy test
fixes #169
2016-06-06 19:47:30 +02:00
Marten Seemann
b1e12531bc add code coverage badge 2016-06-07 00:11:39 +07:00
Marten Seemann
fb583fea1b generate code coverage reports with codecov 2016-06-06 23:58:04 +07:00
Marten Seemann
3963e7eb03 change tests such that they are covered by coverage reports 2016-06-06 23:52:12 +07:00
Marten Seemann
c4c7b78288 correctly parse ACK frames with multiple NACK ranges for version 31 2016-06-06 20:23:41 +07:00
Lucas Clemente
6d58618279 properly ignore errors in session
ref #170
2016-06-06 15:05:38 +02:00
Lucas Clemente
76f7a7d153 use spaces instead of \x00 in handshake message string serialization 2016-06-06 15:00:30 +02:00
Marten Seemann
c0d21ad070 log correct size of received packets
fixes #171
2016-06-06 19:32:37 +07:00
Lucas Clemente
4d5ff5d61e call OnCongestionEvent when packets are retransmitted due to an RTO
fixes #168
2016-06-06 11:56:32 +02:00
Lucas Clemente
d5aced6e03 small linter & typo fixes 2016-06-06 09:37:17 +02:00
Marten Seemann
3f86e0f198 dequeue all retransmission when sending a packet 2016-06-06 12:04:02 +07:00
Marten Seemann
6b6fea94ec add packet drop callback to UDP proxy
ref #167
2016-06-05 21:30:13 +07:00
Lucas Clemente
e2f5d72301 add an integration test using a dockered chrome via selenium
this commit also moves the {Before,After}Suite functions from the
integration_test.go file into the integrationtests_suite_test.go file,
and adds the docker-specific hooks.

ref #162
2016-06-05 15:57:24 +02:00
Marten Seemann
f34890e608 add a simple UDP proxy for integration tests
ref #167
2016-06-05 17:22:30 +07:00
Lucas Clemente
981b465287 fix a race condition of openStreamsCount in session 2016-06-05 12:17:10 +02:00
Marten Seemann
d2c1f0c71a move integration tests to separate package 2016-06-05 17:04:15 +07:00
Lucas Clemente
6a46465092 reduce calls to Debugf when not debugging to reduce slice allocs
ref #129
2016-06-04 15:13:46 +02:00
Lucas Clemente
0f941214b4 fix linter 2016-06-03 21:03:46 +02:00
Lucas Clemente
cc3a94f6b4 handle errors in integration test http.Handlers 2016-06-03 21:02:57 +02:00
Lucas Clemente
68478ed3f1 fix a race condition with stream creation
fixes #164, ref #163
2016-06-03 21:01:02 +02:00
Lucas Clemente
ffacf2f328 fix a possible deadlock in flow controller
ref #164
2016-06-03 18:21:26 +02:00
Lucas Clemente
f6be8716b5 kill client after timeout in integration tests
this should fix the hang-issue of #163
2016-06-03 15:16:32 +02:00
Lucas Clemente
c7324bbfe9 improve integration tests with new server.Serve API
this probably fixes the refused connections issue in #163
2016-06-03 13:31:15 +02:00
Lucas Clemente
3b5b4c1557 add h2quic.Server.Serve(*net.UDPConn) and improve server tests 2016-06-03 13:30:19 +02:00
Lucas Clemente
a47a04d16d add server.Serve() API and improve server tests by listening on port 0 2016-06-03 13:10:04 +02:00
Lucas Clemente
c0b73c4beb fix a potential race in server.Close() 2016-06-03 12:13:07 +02:00
Lucas Clemente
240946dfde replace version number literals with constants to make grepping easier 2016-06-03 11:09:48 +02:00
Lucas Clemente
556bf2fe4b add a test for h2quic.ListenAndServeQUIC
fixes #160
2016-06-03 10:12:34 +02:00
Lucas Clemente
45554e67c4 fix a race condition in quic.Server 2016-06-02 21:22:04 +02:00
Lucas Clemente
bd228ffe27 fix race conditions in h2quic.Server 2016-06-02 21:19:43 +02:00
Lucas Clemente
cdff2e5531 add more tests for h2quic.Server
ref #160
2016-06-02 21:11:11 +02:00
Marten Seemann
c6f4d9720f fix int overflow on 32 bit in handshake parsing 2016-06-02 23:28:13 +07:00
Marten Seemann
cf382be954 fix int overflow on 32 bit architecture in ACK frame test 2016-06-02 23:25:18 +07:00
Marten Seemann
d67c7612a6 run Travis tests on 64 bit (amd64) and 32 bit (386) 2016-06-02 23:20:40 +07:00
Lucas Clemente
d87e20efc9 remove DiversificationNonce() from the AEAD interface 2016-06-02 16:13:48 +02:00
Lucas Clemente
5ed0182b67 fix a race condition in CryptoSetup
CryptoSetup's AEADs were changed between calls to
DiversificationNonce() and Seal()
2016-06-02 16:13:06 +02:00
Lucas Clemente
60611a0176 increase timeout in integration tests 2016-06-02 15:56:30 +02:00
Lucas Clemente
64b34b52a8 add integration tests for loading larger files
ref #152
2016-06-02 13:38:05 +02:00
Lucas Clemente
21db6f9270 move CHLO log to debug 2016-06-02 13:33:19 +02:00
Lucas Clemente
1896003f42 count diversification nonce in public header length
fixes #161
2016-06-02 12:40:14 +02:00
Lucas Clemente
252e884076 add an integration test for POSTing data
ref #152
2016-06-02 12:05:51 +02:00
Lucas Clemente
93629bc595 test all supported quic versions in integration tests
ref #152
2016-06-02 12:05:24 +02:00
Lucas Clemente
0900b5ba73 add a first integration test
ref #152
2016-06-02 11:51:38 +02:00
Lucas Clemente
682c18eac3 increase max crypto param size, the client sends a longer PAD tag 2016-06-02 11:51:19 +02:00
Marten Seemann
2206c12574 add more Go versions for Travis 2016-06-02 15:58:39 +07:00
Lucas Clemente
7ee5f96efd implement h2quic.Server.Close()
fixes #155
2016-06-01 15:35:08 +02:00
Lucas Clemente
c0b2bfa247 fix two typos 2016-06-01 14:19:46 +02:00
Marten Seemann
4df007dc99 reduce MaxPacketSize to the value used by Chromium
ref #94, #117
2016-06-01 17:19:32 +07:00
Lucas Clemente
a6c62d1a26 add a stub for CloseGracefully to h2quic.Server
ref #153, #124
2016-06-01 12:07:06 +02:00