Commit Graph

3305 Commits

Author SHA1 Message Date
Marten Seemann
8380cf97a4 improve logging of NEW_TOKEN frames 2019-01-28 16:46:09 +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
Marten Seemann
9888db457f don't send a STOP_SENDING if the stream was already reset by the peer 2019-01-23 12:48:37 +07:00
Marten Seemann
8d73ebc5af don't send more stream data after a stream was canceled 2019-01-23 12:47:17 +07:00
Marten Seemann
1f75eaffd3 improve the error messages for stream data received after termination 2019-01-23 12:44:38 +07:00
Marten Seemann
887462db5e remove unused session.newStream method 2019-01-22 23:46:30 +07:00
Marten Seemann
bfbf0bca48 always queue window updates when data is being read
There's no need to have a separate call in the flow controller interface
for this.
2019-01-22 23:46:12 +07:00
Marten Seemann
ff9bb5bd96 Merge pull request #1745 from lucas-clemente/remove-megacheck
run gometalinter with staticcheck instead of megacheck
2019-01-22 16:59:27 +07:00
Marten Seemann
6117d8c722 run gometalinter with staticcheck instead of megacheck
Megacheck was deprecated and recently removed from gometalinter:
https://github.com/alecthomas/gometalinter/pull/579.
2019-01-22 14:55:12 +07:00
Marten Seemann
de05de297f Merge pull request #1739 from lucas-clemente/connection-state
set the ConnectionState
2019-01-17 09:14:24 +07:00
Marten Seemann
a84d626cd5 Merge pull request #1733 from lucas-clemente/remove-leftover-todo
remove leftover TODO in the crypto setup
2019-01-17 09:13:53 +07:00
Marten Seemann
84037e3024 Merge pull request #1734 from lucas-clemente/ack-encryption-level
send ACK frames in the correct packet number space
2019-01-16 08:58:01 +07:00
Marten Seemann
9122bfe9ad Merge pull request #1732 from lucas-clemente/tls-handshake-write-key
retrieve the handshake write key when receiving the ServerHello
2019-01-16 08:55:47 +07:00
Marten Seemann
913431d1a4 Merge pull request #1738 from lucas-clemente/multiplexer-remove
delete unused connections from the multiplexer
2019-01-16 08:55:30 +07:00
Marten Seemann
4ba3aa0de8 set the ConnectionState 2019-01-14 11:55:07 +07:00
Jan Rüth
1a0aa50471 delete unused connections from the multiplexer 2019-01-14 11:33:14 +07:00
Marten Seemann
1306787703 Merge pull request #1730 from lucas-clemente/change-dev-version
change the version number for the development version
2019-01-11 15:38:35 +07:00
Marten Seemann
a303ad9745 always send ACKs in the correct packet number space 2019-01-11 11:12:07 +07:00
Marten Seemann
258e43ab95 rename the receivedPacketHandler to receivedPacketTracker 2019-01-11 10:52:39 +07:00
Marten Seemann
5ccc367462 start ignoring packets in ACK frames only after the handshake completed 2019-01-11 10:52:39 +07:00