Benjamin Saunders
fe10e89409
Return a read error on ordered-after-unordered reads
2020-05-29 16:04:52 +02:00
Dirkjan Ochtman
f6904d6140
Apply suggestions from clippy
2020-04-25 09:43:13 -07:00
Benjamin Saunders
a4fea5a7fd
Rename idle_timeout to max_idle_timeout to reflect semantics
2020-03-08 12:04:26 -07:00
Dirkjan Ochtman
6cca808d14
Make rustls an optional dependency for quinn
2020-03-07 12:12:01 -08:00
Benjamin Saunders
5774071b48
Spawn driver tasks implicitly
2020-01-13 09:54:26 +01:00
Benjamin Saunders
f34ce8b199
Richer time types in config structs
2020-01-13 08:53:05 +01:00
Benjamin Saunders
09729ebd23
Opaque config structs
...
Only exposing setters improves forwards compatibility and error
checking.
2020-01-13 08:53:05 +01:00
Benjamin Saunders
a29e37f363
Use tuple variants consistently in error enums
...
These are substantially more concise/less noisy to work with.
2019-12-08 19:53:25 -08:00
daxpedda
7233455078
Update tokio, futures and bytes. ( #528 )
2019-12-02 10:42:05 +01:00
Benjamin Saunders
a957bf4aa2
Replace slog with tracing
2019-10-29 10:36:50 +01:00
Benjamin Saunders
2dcb084347
Decouple incoming streams of differing directionalities
2019-09-29 07:38:30 +02:00
Benjamin Saunders
8e1c6b605e
Remove ToSocketAddrs from EndpointBuilder::bind
...
Improves consistency with Endpoint::connect and removes the
possibility of silent blocking should the user pass in a domain
name. The generic API was originally motivated by the convenience of
passing in numeric addresses as strings, but `.parse().unwrap()` is
pretty easy too.
2019-09-29 07:21:06 +02:00
Benjamin Saunders
d07dc907ad
Update for async/await
2019-09-28 10:23:26 +02:00
Benjamin Saunders
f50dd9f54a
Restore NewConnection struct for parts of a connection
...
This enables forwards-compatibility with future extensions such as
a datagram stream.
2019-08-25 14:50:01 -07:00
Benjamin Saunders
5fbe96f46a
Public VarInt type
...
Ensures correctness of application error codes without panics or
adding new internal failure paths.
2019-07-11 20:52:19 +02:00
Benjamin Saunders
b502306ab3
Refactor ReadToEnd helper to work after reads
2019-07-05 08:35:26 +02:00
Dirkjan Ochtman
45ee97bd5a
Upgrade to rcgen 0.4
2019-06-18 14:11:40 -07:00
Dirkjan Ochtman
5e023f8093
Make stream read API more Stream-like
2019-05-20 21:36:45 +02:00
Benjamin Saunders
264904f692
Don't expose 0.5-RTT connections to servers by default
...
0.5-RTT connections have reduced security guarantees and hence must
only be exposed by opt-in.
2019-04-28 21:13:20 +02:00
Benjamin Saunders
9eea392e35
Restrict read_to_end to unread streams
2019-04-25 06:46:09 +02:00
Benjamin Saunders
8966c7e2d1
Don't yield stream from ReadToEnd
...
This was left over from before bidirectional streams were decoupled.
2019-04-25 06:46:09 +02:00
Dirkjan Ochtman
734978e59e
Rename quinn::Endpoint::new() to builder()
2019-04-16 17:55:13 -07:00
Dirkjan Ochtman
2fb15b9a07
Add high-level API for 0-RTT support
2019-04-13 20:58:16 +02:00
Dirkjan Ochtman
16e4b96f4b
Simplify high-level streams API
2019-04-12 19:59:23 +02:00
Povilas Balciunas
84959a773b
Add many connections to one endpoint test
...
Adds integration test for numerous connections concurrently
transmitting 1 MB of data.
2019-04-12 07:19:09 +02:00