Commit Graph

3323 Commits

Author SHA1 Message Date
Marten Seemann
c7f1fce88a set the default value for the ack_delay_exponent, if it is not sent 2019-02-08 13:50:49 +08:00
Marten Seemann
7dc4be2ce9 Merge pull request #1779 from lucas-clemente/remove-tls-received-extensions-error
remove the error return value when receiving TLS extensions
2019-02-07 20:51:57 +08:00
Marten Seemann
26afc7a4ca remove the error return value when receiving TLS extensions 2019-02-07 12:43:29 +08:00
Marten Seemann
f4057379fe Merge pull request #1777 from lucas-clemente/post-handshake-crypto
implement sending of post-handshake crypto messages
2019-02-07 09:03:34 +08:00
Marten Seemann
b24b8e6926 implement sending of post-handshake crypto messages 2019-02-06 23:05:43 +08:00
Marten Seemann
e7ed5e3c92 implement the crypto stream for post-handshake crypto messages 2019-02-06 22:51:44 +08:00
Marten Seemann
89c7f628ca Merge pull request #1776 from lucas-clemente/handle-retry-in-session
handle Retries in the session
2019-02-06 22:04:57 +08:00
Marten Seemann
17f4ebad64 handle Retry packets in the session 2019-02-04 15:38:47 +08:00
Marten Seemann
7a7e7ca6eb add a function to pass the retry token to the packet packer 2019-02-02 09:24:37 +08:00
Marten Seemann
2712626e66 move processing of transport parameters to the session 2019-02-02 09:24:37 +08:00
Marten Seemann
a95b7c2868 refactor how transport parameters are passed from the extension handler 2019-02-02 09:24:37 +08:00
Marten Seemann
707e9f7b79 Merge pull request #1724 from lucas-clemente/ack-delay-exponent
implement the ack_delay_exponent
2019-01-28 22:00:38 +09:00
Marten Seemann
903b7751a5 Merge pull request #1771 from lucas-clemente/log-new-token-frame
improve logging of NEW_TOKEN frames
2019-01-28 20:48:10 +09:00
Marten Seemann
8380cf97a4 improve logging of NEW_TOKEN frames 2019-01-28 16:46:09 +09:00
Marten Seemann
6834c37462 move the maximum ack delay exponennt to the protocol constants 2019-01-28 16:37:00 +09:00
Marten Seemann
cebb4342ec use the ack_delay_exponent sent in the transport parameters 2019-01-28 16:09:47 +09:00
Marten Seemann
155ebd18a2 parse and send the ack_delay_exponent in the transport parameters 2019-01-28 16:09:47 +09:00
Marten Seemann
ee75f5e2f2 implement ACK frame parsing using an ack delay exponent 2019-01-28 16:09:47 +09:00
Marten Seemann
741521c4d1 refactor frame parsing into a separate struct 2019-01-28 16:09:47 +09:00
Marten Seemann
f0f45e80f9 Merge pull request #1764 from lucas-clemente/new-connection-id-logging
improve logging of NEW_CONNECTION_ID frames
2019-01-28 09:24:06 +09:00
Marten Seemann
c424657067 Merge pull request #1765 from lucas-clemente/ignore-post-handshake-crypto
ignore post-handshake CRYPTO frames
2019-01-28 07:40:51 +08:00
Marten Seemann
2fffad94bc ignore post-handshake CRYPTO frames 2019-01-26 16:41:01 +08:00
Marten Seemann
7ac2766b74 improve logging of NEW_CONNECTION_ID frames 2019-01-26 16:31:53 +08:00
Marten Seemann
350363a796 Merge pull request #1763 from lucas-clemente/packet-handler-close
add a function to close the packet handler map
2019-01-25 18:26:55 +07:00
Marten Seemann
10ee1521be fix race conditions in packet handler map unit tests 2019-01-24 18:22:27 +07:00
Marten Seemann
bb185a3ad2 add a function to close the packet handler map
Close will close the underlying connection and wait until listen has
returned. While not strictly necessary in production use, this will fix
a few race conditions in our tests.
2019-01-24 18:09:46 +07:00
Marten Seemann
6dc4be9f4e Merge pull request #1759 from lucas-clemente/on-stream-completed-fixes
call the onStreamCompleted callback without holding the stream mutex
2019-01-24 17:18:17 +07:00
Marten Seemann
2787a6051a remove some defer statements in the stream 2019-01-24 16:59:13 +07:00
Marten Seemann
46b1d7a1fc call the onStreamCompleted callback without holding the stream mutex 2019-01-24 16:59:13 +07:00
Marten Seemann
770beb55ab Merge pull request #1758 from lucas-clemente/cancel-after-close-noop
make Stream.Cancel{Read,Write} a no-op if called after close, remove return value
2019-01-24 16:55:17 +07:00
Marten Seemann
f3414e732a simplify closing the http.ResponseBody using that CancelRead is a no-op 2019-01-24 16:00:12 +07:00
Marten Seemann
3372fa794c remove the error return value from Stream.CancelWrite 2019-01-24 16:00:12 +07:00
Marten Seemann
ca939df44e remove the error return value from Stream.CancelRead 2019-01-24 16:00:11 +07:00
Marten Seemann
3808191679 make CancelWrite a no-op when called after closing the stream 2019-01-24 16:00:08 +07:00
Marten Seemann
415f79f892 document that CancelRead after reading the io.EOF is a no-op 2019-01-24 10:01:33 +07:00
Marten Seemann
870e2a63a7 Merge pull request #1755 from lucas-clemente/more-cancel-integrationtests
add integration tests where the write side of streams is canceled
2019-01-24 09:25:14 +07:00
Marten Seemann
665d6d495e add an integration tests where both sides of the stream are canceled 2019-01-24 09:13:02 +07:00
Marten Seemann
5447625e79 add an integration test for canceling the write side of streams 2019-01-24 09:11:38 +07:00
Marten Seemann
e03a204f68 disable failing HTTP integration test
See #1756.
2019-01-23 21:56:24 +07:00
Marten Seemann
9f11a5450c Merge pull request #1752 from lucas-clemente/fix-1618
cancel reading from the response stream when the response body is closed
2019-01-23 21:15:14 +07:00
Marten Seemann
11b7d4d829 Merge pull request #1753 from lucas-clemente/cancel-read-integrationtest
add an integration test for canceling the read side of streams
2019-01-23 21:14:21 +07:00
Marten Seemann
7a0f4cfe96 Merge pull request #1754 from lucas-clemente/accept-stream-after-deletion
don't delete a stream until it has been accepted
2019-01-23 21:00:14 +07:00
Marten Seemann
1e09cc1ef4 add an integration test for canceling the read side of streams 2019-01-23 18:23:15 +07:00
Marten Seemann
f17ddffb70 don't delete a stream until it has been accepted 2019-01-23 17:24:10 +07:00
Marten Seemann
05be874b11 cancel reading from the response stream when the response body is closed 2019-01-23 15:45:22 +07:00
Marten Seemann
d6521fa3cc Merge pull request #1749 from lucas-clemente/dont-send-after-reset
don't send stream data after a stream was canceled
2019-01-23 15:25:26 +07:00
Marten Seemann
a71d1c507d Merge pull request #1744 from lucas-clemente/remove-unused-new-stream-method
remove unused session.newStream method
2019-01-23 15:23:27 +07:00
Marten Seemann
092d80ecb7 Merge pull request #1746 from lucas-clemente/stream-resets
account for connection-level flow control on stream resets
2019-01-23 15:23:06 +07:00
Marten Seemann
1d7d532035 release connection-level flow control credit when a stream is reset 2019-01-23 12:49:48 +07:00
Marten Seemann
1864e301ef move tracking of the final stream offset to the stream 2019-01-23 12:48:37 +07:00