Andy Russell
a1521f4c09
strip IPv6 brackets before connecting to IP
3 years ago
Dominik Nakamura
64f60d8d33
Upgrade to rustls 0.20 / tungstenite 0.16
...
Based on tokio-tungstenite PR:
https://github.com/snapview/tokio-tungstenite/pull/198
Co-authored-by: Sebastian Dröge <sebastian@centricular.com>
3 years ago
Sebastian Dröge
ee6c24d327
Update to tungstenite 0.15
3 years ago
Sebastian Dröge
15adbdf640
Fix formatting
4 years ago
Sebastian Dröge
5726be5f2b
Update gio-runtime feature to glib/gio 0.14
4 years ago
Alisue
e152c8511b
Expose `client_async_tls_with_connector_and_config`
4 years ago
QiuJiangkun
44a59b66e5
conditionally disable verbose logging ( #92 )
...
* conditionally disable verbose logging
* disable logging setting context ... conditionally
* no verbose logging by default
4 years ago
Yusuf Bera Ertan
83395f3d7c
fix: cargo fmt
4 years ago
Yusuf Bera Ertan
5258049729
fix: matching delimter
4 years ago
Yusuf Bera Ertan
b0689b6520
feat: make tokio-rustls-native-certs preferred, disallow enabling both at the same time
...
Co-authored-by: Sebastian Dröge <slomo@coaxion.net>
4 years ago
Yusuf Bera Ertan
e89b49c16d
feat: add two new features to allow using webpki-roots or rustls-native-certs
4 years ago
Sebastian Dröge
108bc1fab1
Fix tokio-openssl connect API
...
After creating the SslStream it first has to be connected before it can
actually be used to initiate the WebSocket connection.
While this technically is a breaking API changes because of wrapping the
stream in a Pin<Box<_>> and having this as part of the public API, the
old API simply didn't work so if anybody's code fails to compile now
they would've had non-functioning code anyway.
4 years ago
amesgen
d28799bc12
add get_{ref,mut} for TokioAdapter
4 years ago
hansolshin
36d1ab22f1
Add #[derive(Debug)] to Stream
4 years ago
Sebastian Dröge
1170f4e080
Fix a couple of clippy warnings
4 years ago
Sebastian Dröge
24cae74484
Update to tungstenite 0.13
...
And improve error mapping.
Fixes https://github.com/sdroege/async-tungstenite/issues/79
4 years ago
Constantin Nickel
ab28b2d367
Migrate from pin-project to pin-project-lite
4 years ago
Constantin Nickel
253f8c9291
Update to tokio 1.0
4 years ago
Constantin Nickel
42fb96666b
Update tokio to 0.3
4 years ago
Constantin Nickel
cf9ca1ffae
Bring tokio's async-tls and rustls impls in line with the others
4 years ago
Constantin Nickel
7dcaebccf9
Split out tokio tls impls into separate files
4 years ago
Constantin Nickel
a9fd92529e
Configure the server trust anchors for tokio-rustls
4 years ago
Constantin Nickel
066af47721
Run rustfmt and enforce via CI
4 years ago
Constantin Nickel
a2468d0431
Implement the `tokio::client_async_tls*` functions for `async-tls` and `tokio-rustls`
4 years ago
Constantin Nickel
96b1f87dfb
Tune tokio's feature gates to play nice together
4 years ago
Mathias Koch
286dd662b6
Add support for tokio-rustls
4 years ago
Josh Matthews
00fa09ce37
Add openssl support.
5 years ago
Sebastian Dröge
3b770316d6
Work directly on the tokio AsyncRead/AsyncWrite traits and convert internally
...
Fixes https://github.com/sdroege/async-tungstenite/issues/28
5 years ago
Philippe Normand
220df7b0af
gio: Make the IOStreamAsyncReadWrite constructor private
...
Ensuring this struct can only be created internally is important, ensuring
only one reference of GIOStream is tracked.
5 years ago
Philippe Normand
be83431c2f
gio: Add Send implementation to IOStreamAsyncReadWrite
...
This is a wrapper for GSocketConnection, which should be OK to share across
threads.
5 years ago
Sebastian Dröge
8738c887c0
Add public type aliases for the stream types used by the various client-side functions
...
Fixes https://github.com/sdroege/async-tungstenite/issues/35
5 years ago
Sebastian Dröge
be8e9d898d
Don't declare internal port function when only the async-tls feature is enabled
...
warning: function is never used: `port`
--> src/lib.rs:381:15
|
381 | pub(crate) fn port(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: 1 warning emitted
5 years ago
Naja Melan
e131ec4e8a
Expose the configuration of the websocket connection.
...
Allows wrapper types to respect max_message_size.
5 years ago
Sebastian Dröge
29e528d1bc
Switch from deprecated tokio-tls to tokio-native-tls
5 years ago
Marcin Pajkowski
9b5b065b1b
Derive `Debug` for `WebSocketStream<S>`
5 years ago
Sebastian Dröge
5c594c0549
Forward handshake errors directly instead of wrapping them in a Other IO error
...
This allows getting HTTP status codes back to the caller, for example,
and allows proper handling of handshake errors.
5 years ago
SchrodingerZhu
a2b88e46d0
bump version
5 years ago
Erich Gubler
d4eea7211c
build(deps): minimize unnecessary dependencies by using `futures-{channel,io,util}` directly instead of `futures` outside of tests/examples
5 years ago
Naja Melan
249dbf7f2d
Advertise not using unsafe code.
5 years ago
Naja Melan
2d1bf51e7d
fix clippy warning
5 years ago
Naja Melan
6015bf5f7b
error.description is deprecated as of current nightly.
5 years ago
Naja Melan
bfbb94030a
Don't project if you require Unpin.
...
This doesn't make sense. For Unpin types, Pin does nothing, so Pin::new() is sufficient.
However Pin::new is only implemented for `Pin<P> where <P as Deref>::Target: Unpin`, so if it weren't Unpin,
you would have to use unsafe { Pin::new_unchecked(s) }, `Pin::new()` wouldn't compile.
Thus project and Pin::new together is always a code smell.
5 years ago
Sebastian Dröge
a65c53b6cd
Fix clippy warning about ok_or() followed by a function call
...
warning: use of `ok_or` followed by a function call
--> src/lib.rs:379:10
|
379 | .ok_or(tungstenite::Error::Url("Url scheme not supported".into()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| tungstenite::Error::Url("Url scheme not supported".into()))`
5 years ago
Sebastian Dröge
3a994e6e3b
Update to tungstenite 0.10
...
Partially based on tungstenite commits
- 46dfd9ed3ee75b0261e9f5f71c8e70492407248b by Alexey Galakhov
- 31010fd636b3edc683199e3182ea34d799118d5b by Alexey Galakhov
5 years ago
wolf4ood
0c749aeeb0
Restored stream pub visibility
5 years ago
Sebastian Dröge
c2ff77b446
Refactor features and optional API and add support for tokio/gio async runtimes
5 years ago
Sebastian Dröge
c2374308b0
Fix various clippy warnings
5 years ago
Sebastian Dröge
c647de44ef
Add client_async_tls and connect_async variants with WebSocketConfig parameter
5 years ago
Sebastian Dröge
b4d5a9e84e
Add API for connecting and creating clients with a custom TLS connector
...
Fixes https://github.com/sdroege/async-tungstenite/issues/2
5 years ago
Sebastian Dröge
fb8bbca9ed
Add optional support for TLS via async-native-tls instead of async-tls (rustls)
...
Can be enabled with the "native-tls" feature instead of just "tls".
5 years ago