Sean McArthur
eef0ee52f0
v0.2.0-alpha.3
2019-10-01 08:37:56 -07:00
Sean McArthur
b534a7888a
v0.2.0-alpha.2
2019-09-20 14:05:06 -07:00
Michael Beaumont
fac165e451
Add server support for push ( #327 )
...
Closes #291 , closes #185
2019-09-16 11:30:58 -07:00
Sean McArthur
0527f5b72a
Rename 'stream' feature to 'unstable-stream'
2019-09-12 12:44:44 -07:00
Michael Beaumont
06a68a76a2
Use IndexMap::swap_remove instead of deprecated IndexMap::remove
2019-09-12 12:22:17 -07:00
Sean McArthur
8e81d84910
v0.2.0-alpha.1
2019-09-04 11:08:05 -07:00
Sean McArthur
2d90efee17
Prune futures-* dependencies
2019-08-30 14:53:49 -07:00
Sean McArthur
678c90eb0a
Update futures and tokio alphas
2019-08-29 15:44:26 -07:00
Gurwinder Singh
85b1f669c0
chore: async_await is stable on nightly
2019-08-21 11:10:03 -07:00
Sean McArthur
b2af3d4b28
Change trailers() to return Result<Option> instead of Option<Result>
2019-08-20 17:32:06 -07:00
Sean McArthur
a1db5428db
Make Stream impls part of optional 'stream' cargo feature ( #397 )
2019-08-20 16:01:03 -07:00
Sean McArthur
f31ec5d0da
Remove deprecated-in-0.1.x APIs
2019-08-20 15:15:04 -07:00
Gurwinder Singh
f46840f3fa
chore: cargo fmt, clippy
2019-08-16 22:27:39 -07:00
Gurwinder Singh
b039ef25bc
Make handshake an async fn; other cleanup
2019-08-16 18:47:47 -07:00
Gurwinder Singh
ad7ffa795f
Updated as per review comments
2019-08-16 18:47:47 -07:00
Gurwinder Singh
c8fefd49f1
Update lib to std-future
2019-08-16 18:47:47 -07:00
lukaslueg
782f1f712c
Remove byteorder-dependency ( #392 )
2019-08-09 13:20:48 -07:00
Gurwinder Singh
f4dec6efa4
chore: 2018 edition clean up ( #386 )
2019-07-25 10:30:52 -07:00
Jakub Beránek
db6b841e67
Update crate to Rust 2018 ( #383 )
2019-07-23 10:18:43 -07:00
Sean McArthur
4dde4157d5
v0.1.25 ( #382 )
2019-06-28 13:17:26 -07:00
Sean McArthur
ab52cf9b30
Send RST_STREAM of STREAM_CLOSED instead of GOAWAY if stream may have been forgotten
2019-06-28 12:48:42 -07:00
Sean McArthur
19936721b8
Adjust client::Handshake's PhantomData since it doesn't own a buffer
2019-06-27 09:41:43 -07:00
Sean McArthur
f8f05d04e7
Fix trailers without EOS flag to be a stream instead of connection error ( #377 )
...
[Trailers without EOS](https://httpwg.org/specs/rfc7540.html#HttpSequence ):
> An endpoint that receives a HEADERS frame without the END_STREAM flag set after receiving a final (non-informational) status code MUST treat the corresponding request or response as malformed (Section 8.1.2.6).
[Malformed messages](https://httpwg.org/specs/rfc7540.html#malformed ):
> Malformed requests or responses that are detected MUST be treated as a stream error (Section 5.4.2) of type PROTOCOL_ERROR.
2019-06-26 13:38:06 -07:00
Sean McArthur
c616ac4611
v0.1.24
2019-06-17 14:37:12 -07:00
Eliza Weisman
0e9fbe4a90
Log protocol error causes at debug ( #371 )
...
Currently, there are many cases where `h2` will fail a connection or
stream with a PROTOCOL_ERROR, without recording why the protocol error
occurred. Since protocol errors may result from a bug in `h2` or from a
misbehaving peer, it is important to be able to debug the cause of
protocol errors.
This branch adds a log line to almost all cases where a protocol error
occurs. I've tried to make the new log lines consistent with the
existing logging, and in some cases, changed existing log lines to make
them internally consistent with other log lines in that module. All
receive-side errors that would send a reset are now logged at the debug
level, using a formatting based on the format used in `framed_read`.
Signed-off-by: Eliza Weisman <eliza@buoyant.io >
2019-06-17 14:14:40 -07:00
Sean McArthur
383593a01e
allow servers to receive requests without an :authority header
2019-06-17 12:58:50 -07:00
Alex Touchet
e13645c091
Update repo URLs ( #370 )
2019-06-04 23:06:13 -07:00
Sean McArthur
8974fcd9ff
v0.1.23
2019-06-04 19:53:01 -07:00
Sean McArthur
611e1ca010
Clear recv buffer when stream refs are dropped
2019-06-04 19:09:30 -07:00
Sean McArthur
a5a2ee7f7a
v0.1.22
2019-06-03 11:26:59 -07:00
Sean McArthur
cf5e53f0c3
Refactor proto::streams::store indices
...
- Removes incrementing counter, instead just using the StreamId as a
slab ABA guard.
- Adjusts Ptr::deref to use Store::index, as before it was skipping to
check the ABA guard.
- Rename fields and types to clarify it actually is an ABA guard.
- Improve panic message in case a dangling Ptr is accessed.
2019-05-31 17:12:01 -07:00
Sean McArthur
b8f1f0ccf1
Prevent trying to assign capacity to streams that were just reset
2019-05-31 14:56:16 -07:00
Sean McArthur
ad5a40c682
v0.1.21
2019-05-30 10:49:40 -07:00
Sean McArthur
6ebad4bb41
increase write buffer size to 16kb
2019-05-29 17:19:55 -07:00
Sean McArthur
91819bf25e
check for overly large header field in send_headers
2019-05-29 17:19:55 -07:00
Sean McArthur
e512b6ccb6
panic if stuck in a CONTINUATION frame write loop
2019-05-29 17:19:55 -07:00
Sean McArthur
90d346bad8
v0.1.20
2019-05-16 14:14:40 -07:00
Sean McArthur
4c2cd72ea9
fix DebugFlags lifetimes for older compilers
2019-05-16 13:52:54 -07:00
Sean McArthur
30f125dfc3
v0.1.19
2019-05-15 14:09:09 -07:00
Sean McArthur
dabd58fd58
use newest hpack index when repeating a header name
2019-05-15 13:32:07 -07:00
Sean McArthur
fc2fb487ea
record last index when starting to encode a CONTINUATION frame
2019-05-15 13:32:07 -07:00
Sean McArthur
44ff5e5c78
Add DebugFlags helper, improve format of HEADERS and SETTINGS frames
2019-05-13 13:14:07 -07:00
Sean McArthur
dddef4ccbe
v0.1.18
2019-04-09 12:29:22 -07:00
Sean McArthur
a3e59eb7e2
Prevent server Connection from returning same error after calling abrupt shutdown ( #352 )
2019-04-03 11:41:56 -07:00
Sean McArthur
8e809c3e0c
v0.1.17
2019-03-12 18:59:36 -07:00
Sean McArthur
492f4e7f11
Make 'pending reset' streams not count towards active streams
2019-03-12 17:17:02 -07:00
Sean McArthur
feff97905f
Notify RecvStream tasks if SendStream sends a local reset
2019-03-12 17:17:02 -07:00
Sean McArthur
e3a73f726e
Add user PING support ( #346 )
...
- Add `share::PingPong`, which can send `Ping`s, and poll for the `Pong`
from the peer.
2019-02-18 15:59:11 -08:00
Sean McArthur
8a0b7ff64f
Loosen bounds on Handshake struct ( #343 )
2019-02-07 13:03:53 -08:00
Sean McArthur
74f040f5bf
v0.1.16 ( #344 )
2019-01-24 10:37:47 -08:00