Benjamin Saunders
cbb3470c7e
Update draft number
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
Dirkjan Ochtman
0a4bca7049
Remove old authentication data APIs
2020-03-07 12:12:01 -08:00
Benjamin Saunders
31fabfe807
Fix panic in connection example
2020-02-27 07:05:37 +01:00
Benjamin Saunders
5774071b48
Spawn driver tasks implicitly
2020-01-13 09:54:26 +01:00
Benjamin Saunders
16e670c9f3
Simplify example common module
2020-01-13 08:54:04 +01:00
Benjamin Saunders
527444ed77
Simplify single_socket example
2020-01-13 08:54:04 +01:00
Benjamin Saunders
42ca1cc0a5
Simplify insecure_connection example
2020-01-13 08:54:04 +01:00
Benjamin Saunders
9a9d940e81
Simplify connection example
2020-01-13 08:54:04 +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
b17bc14662
Don't expose connection IDs
...
These aren't particularly interesting to users and can change
unpredictably, so exposing them is an unnecessary footgun.
2020-01-12 10:07:04 +01:00
Dirkjan Ochtman
102f537d40
Fix remaining lints
2019-12-22 14:28:02 -08:00
Benjamin Saunders
03cd3e27f2
Correct style for latest rustfmt
2019-12-22 09:30:02 +01:00
daxpedda
7233455078
Update tokio, futures and bytes. ( #528 )
2019-12-02 10:42:05 +01:00
Benjamin Saunders
f48aa59512
Document a NewConnection footgun and the meaning of server_name
...
Non-obvious details identified in the course of assisting a new user.
2019-11-29 22:14:16 +01:00
Benjamin Saunders
8d3a5958f4
Update version to draft 24
2019-11-25 15:08:39 +01:00
Benjamin Saunders
4902bfe6ba
Use anyhow instead of failure in examples
...
Anyhow was already in our depgraph and is more modern and actively
maintained.
2019-11-19 11:46:43 -08:00
Benjamin Saunders
93690aa4c9
Fix buggy non-async-style tracing span in server example
2019-11-19 20:01:49 +01:00
Timon Post
ac810125c1
merge imports
2019-11-19 08:23:35 +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
82b9455caf
Use multithreaded tokio runtime for server example
...
Illustrates our support for more typical tokio patterns
2019-09-28 10:23:26 +02:00
Benjamin Saunders
d07dc907ad
Update for async/await
2019-09-28 10:23:26 +02:00
Dirkjan Ochtman
2afe7f597d
Update initial salt and QUIC version to draft 23
2019-09-23 12:25:08 -07: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
Dirkjan Ochtman
01b9d212be
Upgrade to url 2
2019-07-24 21:29:48 +02:00
Benjamin Saunders
e7929713cd
Handle unclear interop ALPN
2019-07-11 20:52:19 +02: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
Benjamin Saunders
747d5a263b
Colorful logging in examples
2019-06-24 19:31:38 +02:00
Benjamin Saunders
cf319d562f
Helper functions for unwrapping incoming streams of known type
2019-06-24 19:31:38 +02:00
Benjamin Saunders
d187f99c25
Fix warnings in high-level examples
2019-06-24 19:31:38 +02:00
Dirkjan Ochtman
7b507d82b1
Move ALPN_QUIC_HTTP from library to examples/interop code
2019-06-20 12:30:02 -07:00
Dirkjan Ochtman
45ee97bd5a
Upgrade to rcgen 0.4
2019-06-18 14:11:40 -07: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
dcaa80c170
Define helper future for finishing streams
...
More convenient than the tokio::io shutdown helper, and preserves
specific error information.
2019-04-27 20:57:19 +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
Benjamin Saunders
462267f281
Fix example endpoint construction
2019-04-18 06:53:20 +02:00
Povilas Balciunas
1015ffbcb6
Add example how to ignore server certificate verification
2019-04-17 17:54:25 +02:00
Povilas Balciunas
daed3dd3f4
Add example how to use single UDP socket for multiple QUIC connections
2019-04-17 17:54:25 +02:00
Povilas Balciunas
53e677dac6
Add the simplest QUIC connection example
2019-04-17 17:54:25 +02:00
Dirkjan Ochtman
734978e59e
Rename quinn::Endpoint::new() to builder()
2019-04-16 17:55:13 -07:00
Dirkjan Ochtman
16e4b96f4b
Simplify high-level streams API
2019-04-12 19:59:23 +02:00
Benjamin Saunders
0428c8693d
More consistent config filed naming
2019-04-08 07:12:21 +02:00
Benjamin Saunders
6ec3b021cb
Move ClientConfig into quinn-proto
2019-04-08 07:12:21 +02:00
Benjamin Saunders
6b15147891
Graceful close in HTTP/0.9 client example
2019-04-07 00:34:15 -07:00
Benjamin Saunders
7fce27d84a
Ignore trailing garbage in HTTP/0.9 example server
2019-04-07 00:34:15 -07:00
Dirkjan Ochtman
0cf709114c
Log listening address in example server
2019-04-01 21:06:53 +02:00