Commit Graph

1672 Commits

Author SHA1 Message Date
Marten Seemann
f9659428c7 Merge pull request #681 from lucas-clemente/session-logging
add some more logging to the session
2017-06-16 21:01:13 +02:00
Marten Seemann
45310d5898 Merge pull request #682 from lucas-clemente/fix-rtt-test
increase RTT and time constraints in handshake RTT tests
2017-06-16 15:06:55 +02:00
Marten Seemann
99527cf3d4 log the local address when starting a new connection in the client 2017-06-16 15:00:48 +02:00
Marten Seemann
2a2375f787 log undecrytable packets after the handshake 2017-06-16 15:00:48 +02:00
Marten Seemann
248bec97f9 log connection ID for sent packets 2017-06-16 15:00:48 +02:00
Marten Seemann
10cbb59828 Merge pull request #684 from lucas-clemente/fix-683
fix flaky proxy tests
2017-06-16 14:55:23 +02:00
Marten Seemann
97914a096a Merge pull request #680 from lucas-clemente/waituntilclosed
add a method to the session that blocks until it is closed
2017-06-16 14:07:43 +02:00
Marten Seemann
ab1aaf9355 fix flaky proxy tests 2017-06-16 13:24:13 +02:00
Marten Seemann
55dbc3c52f increase RTT and time constraints in handshake RTT tests 2017-06-16 12:49:42 +02:00
Marten Seemann
cd02cc8f0f add a method to the session that blocks until it is closed 2017-06-16 11:13:40 +02:00
Lucas Clemente
95c3db90a8 Merge pull request #678 from lucas-clemente/inttest-versions
Start a unique quic server per integration test case
2017-06-15 14:18:59 +02:00
Lucas Clemente
960a445ebe Start a unique quic server per integration test case
This fixes a race condition that could lead to errors during version negotiation.

Fixes #676.
2017-06-15 14:05:31 +02:00
Lucas Clemente
d335458080 Merge pull request #675 from lucas-clemente/fix-672
Fix stream framer race condition causing FC issues
2017-06-14 20:01:41 +02:00
Lucas Clemente
e09590a75c Fix stream framer race condition causing FC issues
Fixes #672.
2017-06-14 19:47:47 +02:00
Lucas Clemente
a020ad2ab5 Merge pull request #673 from lucas-clemente/fix-663
Don't retransmit handshake packets once the handshake is complete
2017-06-14 17:12:40 +02:00
Lucas Clemente
23bad71d92 Don't retransmit handshake packets once the handshake is complete
Fixes #663.
2017-06-14 16:36:35 +02:00
Marten Seemann
7a49b06c6c Merge pull request #671 from lucas-clemente/flowcontrol-fixes
fix error messages for connection-level flow control violations
2017-06-14 14:21:16 +02:00
Marten Seemann
2a1b21af2f Merge pull request #670 from lucas-clemente/fix-stream-write
return the length of data written when the stream errors
2017-06-14 14:21:05 +02:00
Marten Seemann
c63be8c544 return the length of data written when the stream errors 2017-06-14 12:08:26 +02:00
Marten Seemann
63873632d0 fix error messages for connection-level flow control violations 2017-06-14 10:06:47 +02:00
Marten Seemann
e1e076e375 Merge pull request #667 from lucas-clemente/goftm-imports
run gofmt to fix ordering of imports
2017-06-14 10:05:52 +02:00
Lucas Clemente
c520b548ae Merge pull request #666 from twdkeule/fix-526
Make max flow control windows configurable
2017-06-14 09:58:39 +02:00
Lucas Clemente
bdca82f766 Remove incomplete and unnecessary sentence in docs 2017-06-14 09:58:12 +02:00
Thomas De Keulenaer
798a95aa01 Updated Changelog and comments 2017-06-14 09:38:18 +02:00
Marten Seemann
987905149b run gofmt to fix ordering of imports 2017-06-13 18:07:22 +02:00
Thomas De Keulenaer
9a6cb5eb4d Default flow lvls should be tested at client/server.go lvl 2017-06-13 16:43:46 +02:00
Thomas De Keulenaer
4fa7b9e569 Let server and client fill the flow variables 2017-06-13 16:42:06 +02:00
Thomas De Keulenaer
89f96d1e89 Make max flow control windows configurable 2017-06-13 15:52:51 +02:00
Thomas De Keulenaer
93e2f751b5 Fix typo and clarify 2017-06-13 14:00:06 +02:00
Marten Seemann
bb280f29be Merge pull request #647 from lucas-clemente/log-level-numbers
better log levels
2017-06-11 12:28:58 +02:00
Marten Seemann
03ee31d26b make the log level env variable a string 2017-06-11 12:01:38 +02:00
Marten Seemann
7bad019ac2 order log levels ascending
Make the log level numbers more intuitive. Logging nothing is now log
level 0, debug logging is level 3.
2017-06-11 12:01:37 +02:00
Marten Seemann
9a55fe234f Merge pull request #648 from lucas-clemente/internalize-utils
make utils an internal package
2017-06-11 11:54:49 +02:00
Marten Seemann
21553272e7 fix Codecov for the internal package 2017-06-11 11:33:10 +02:00
Lucas Clemente
1ae8ead6ae Merge pull request #658 from lucas-clemente/fix-shlo
Fix unencrypted SHLO
2017-06-10 15:33:37 +02:00
Lucas Clemente
80f87e2fab Fix formatting 2017-06-10 15:33:07 +02:00
Marten Seemann
c0b09c8646 make utils an internal package 2017-06-09 22:28:40 +02:00
Lucas Clemente
24d9ed2769 Merge pull request #660 from lucas-clemente/timeouts
Increase test timeouts
2017-06-09 19:12:44 +02:00
Lucas Clemente
e43b91f633 Fix encryption of stream data
This commit splits up handling of the crypto stream and the other streams in the framer, crypto setup, and the packer.

- Crypto stream data is handled separately and should never be sent unencrypted or FW-secure. Fixes #544.
- Non-crypto stream data is only sent with FW encryption on the server and only with non-FW or FW encryption on the client. Fixes #611.

The crypto stream is current excluded from flow control (#657), but that shouldn't be an issue in practice for now.
2017-06-09 19:12:10 +02:00
Lucas Clemente
4ea2ccd526 Improve STOP_WAITING detection in packet packer 2017-06-09 19:12:10 +02:00
Lucas Clemente
86b329d7da Factor public header creation into a new function 2017-06-09 19:12:09 +02:00
Lucas Clemente
7c1ef9c340 Merge pull request #655 from lucas-clemente/mocks
Generate some mocks using gomock
2017-06-09 19:11:25 +02:00
Lucas Clemente
61c4faf4d1 Increase test timeouts 2017-06-09 16:56:14 +02:00
Lucas Clemente
c02f904479 Mock CPM everywhere using gomock 2017-06-09 12:38:07 +02:00
Lucas Clemente
d01f9880be Use gomocked CPM in the flowcontrol tests 2017-06-09 12:20:36 +02:00
Lucas Clemente
8b6a662223 Move flow control mocks to a separate package
This allows the other mocks to be used in the FC tests.
2017-06-09 12:08:26 +02:00
Lucas Clemente
050358bbc5 Mock CPM in streams map using gomock 2017-06-09 11:58:09 +02:00
Marten Seemann
6d15a4a31a Merge pull request #652 from lucas-clemente/accept-duplicate-packets
accept duplicate and delayed packets
2017-06-08 16:08:45 +02:00
Lucas Clemente
eeb2d8d821 Mock FlowControlManager using gomock 2017-06-08 16:06:31 +02:00
Marten Seemann
14fa2dc7dd accept duplicate and delayed packets
We used to reject duplicate and packets with packet numbers lower than
the LeastUnacked we received in a STOP_WAITING frame, because we didn't
accept overlapping stream data. For all other frames, duplicates never
were an issue. Now that we accept overlapping stream data, there's no
need to reject those packets, in fact, processing a delayed packet will
be beneficial for performance.
2017-06-08 15:41:16 +02:00