Commit Graph

1425 Commits

Author SHA1 Message Date
Lucas Clemente
016ae607a5 Change client example to point to clemente.io
This caused confusion in #486.
2017-03-20 10:01:19 +01:00
Marten Seemann
9a1e86cf5e Merge pull request #485 from lucas-clemente/fix-483
return an error when the network conn is closed in Listener.Serve()
2017-03-17 10:11:04 +07:00
Marten Seemann
021c9d5bcd return an error when the network conn is closed in Listener.Serve()
fixes #483
2017-03-16 14:04:19 +07:00
Marten Seemann
6d0ac39cf7 Merge pull request #482 from lucas-clemente/fix-479
send a HeadersStreamDataDecompressFailure error when H2 frame parsing fails
2017-03-15 17:15:21 +07:00
Marten Seemann
79d1bd9061 Merge pull request #481 from lucas-clemente/too-large-packets
remove ineffective check for too large packets
2017-03-15 17:15:11 +07:00
Marten Seemann
7f416a06c4 send a HeadersStreamDataDecompressFailure error when H2 frame parsing fails
fixes #479
2017-03-15 11:11:38 +07:00
Marten Seemann
841421ef7a remove ineffective check for too large packets
closes #468
2017-03-15 09:30:06 +07:00
Marten Seemann
4f16503ab9 save the TLS config in the h2quic client
fixes #476
2017-03-15 09:18:06 +07:00
Marten Seemann
0a825a397d Merge pull request #477 from lucas-clemente/session-localaddr
add a Session.LocalAddr()
2017-03-10 00:38:34 +07:00
Marten Seemann
ab90b3f4d0 add tests for session.LocalAddr and session.RemoteAddr 2017-03-10 00:13:20 +07:00
Marten Seemann
34b688b3b9 add a LocalAddr to the Session 2017-03-10 00:07:27 +07:00
Marten Seemann
1b8334c344 Merge pull request #473 from lucas-clemente/fix-471
only send Public Reset after a timeout
2017-03-08 18:49:09 +07:00
Marten Seemann
eb7ed2624a only send Public Reset after a timeout
fixes #471
2017-03-08 18:15:52 +07:00
Marten Seemann
622e856e3f update README 2017-03-08 10:31:39 +07:00
Marten Seemann
c98a62032e Merge pull request #469 from lucas-clemente/fix-467
read packets with the maximum packet size
2017-03-06 18:27:53 +07:00
Marten Seemann
f5bbe316e8 use OpenStreamSync to open the data stream in the h2quic client 2017-03-06 14:55:46 +07:00
Marten Seemann
1f01904270 read packets with the maximum packet size
fixes #467
2017-03-06 13:02:46 +07:00
Lucas Clemente
eff9c6f906 Merge pull request #459 from lucas-clemente/fix-458
Fix reading of tls.Config certificates
2017-03-02 12:40:24 +01:00
Lucas Clemente
d4a3613a5f Merge pull request #463 from lucas-clemente/lucas-clemente-patch-1
Retry travis builds up to 3 times
2017-03-02 12:40:09 +01:00
Lucas Clemente
33b0a45981 Retry travis builds up to 3 times 2017-03-02 11:13:00 +01:00
Lucas Clemente
723f86c725 Don't use GetConfigForClient on go < 1.8 2017-03-02 10:40:20 +01:00
Marten Seemann
362bd3e9e0 Merge pull request #462 from lucas-clemente/fix-461
fix detection of duplicate stream data in streamFrameSorter
2017-03-02 14:19:39 +07:00
Marten Seemann
7b16392993 fix detection of duplicate stream data in streamFrameSorter
fixes #461
2017-03-02 13:48:03 +07:00
Lucas Clemente
37593993dd Merge pull request #448 from lucas-clemente/new-api-docs
Improve documentation for our new API
2017-03-01 21:42:21 +01:00
Lucas Clemente
5e76245e61 improve documentation in response to code review 2017-03-01 21:40:24 +01:00
Lucas Clemente
219ce60a5e Call GetConfigForClient in tls.Config if present 2017-03-01 21:11:52 +01:00
Lucas Clemente
1bb4a26965 Fix reading of tls.Config certificates
This commit mostly copies the getCertificate function from crypto/tls to
align our certificate reading with the standard library.

Should fix #458.
2017-03-01 18:33:05 +01:00
Marten Seemann
c26e2bba4b Merge pull request #449 from lucas-clemente/new-fix-391
immediately switch to forward-secure crypto after sending the SHLO
2017-03-01 15:31:34 +07:00
Marten Seemann
8c5e7818a0 retransmit the diversification nonce in the packet carrying the SHLO
The packet containing the SHLO is the only packet that is sent with
initial encryption. If it is lost, we need to make sure that the
diversification nonce is included in the PublicHeader, otherwise the
client will not be able to derive the keys for the forward-secure
encryption.
2017-03-01 15:11:01 +07:00
Marten Seemann
b5c8c11c0c switch to forward-secure encryption after sending the SHLO 2017-03-01 14:11:25 +07:00
Marten Seemann
936a29ff35 retransmit packets with the encryption level they were sent with 2017-03-01 14:11:25 +07:00
Marten Seemann
5e91f139ce add a method to pack a retransmission in the packetPacker 2017-03-01 14:11:21 +07:00
Marten Seemann
7d2922d7ab save the encryption level of a sent packet in the SentPacketHandler 2017-03-01 14:09:50 +07:00
Marten Seemann
9e147714ac pack smaller packets as long as the encryption is not forward secure 2017-03-01 14:01:52 +07:00
Marten Seemann
d4b2b66273 change composeNextPacket function signature in packetPacker 2017-03-01 14:01:52 +07:00
Marten Seemann
599926e3cb add a method to force the encryption level when sealing a packet 2017-03-01 14:01:51 +07:00
Marten Seemann
178c14f1d4 Merge pull request #454 from lucas-clemente/streamframesorter
accept overlapping stream data
2017-02-28 19:05:36 +07:00
Marten Seemann
e674016312 accept overlapping stream data 2017-02-28 18:34:15 +07:00
Marten Seemann
556efdc99d code refactoring in streamFrameSorter 2017-02-28 18:34:15 +07:00
Marten Seemann
b8bc008ba9 simplify tests of the streamFrameSorter 2017-02-28 18:34:15 +07:00
Marten Seemann
4de80a6ef1 Merge pull request #456 from lucas-clemente/fix-455
decode H2 HeadersFrame in h2quic responseWriter tests
2017-02-28 18:33:14 +07:00
Marten Seemann
c1d57d6efe decode H2 HeadersFrame in h2quic responseWriter tests
fixes #455
2017-02-28 11:05:51 +07:00
Marten Seemann
8ddbdf9630 Merge pull request #453 from lucas-clemente/fix-452
reject stream frames that overflow the offset
2017-02-27 16:49:25 +07:00
Marten Seemann
d1b1bd21e4 Merge pull request #451 from lucas-clemente/crypto-change-callback
explicitly pass encryption level in the aeadChanges channel
2017-02-27 16:45:22 +07:00
Marten Seemann
745d7b7e9f reject stream frames that overflow the offset
fixes #452
2017-02-27 15:45:32 +07:00
Marten Seemann
6cb19e42a5 explicitly pass encryption level in the aeadChanges channel 2017-02-25 21:38:08 +07:00
Lucas Clemente
1a0dc05211 improve documentation for our new API 2017-02-25 11:28:26 +01:00
Marten Seemann
20b2069d78 Merge pull request #447 from lucas-clemente/fix-446
prevent sending of unencrypted stream data on data streams
2017-02-25 17:01:24 +07:00
Lucas Clemente
5a3823a5db Merge pull request #445 from lucas-clemente/close-remote
Remove stream.CloseRemote from public API
2017-02-25 10:42:58 +01:00
Marten Seemann
21d39c13e4 add more server tests 2017-02-25 12:03:35 +07:00