ComplexSpaces
e935f4078b
Add tokio-rustls-manual-roots feature
...
This allows dropping the forced dependency on webpki-roots when using
a custom connector that provides its own TLS roots instead.
2 years ago
Benoît CORTIER
068a9a6984
Fix poll_flush on closed connection
...
Flushing when there is nothing to send anymore should succeed.
Relevant code in `tungstenite` crate code:
e5efe537b8/src/protocol/mod.rs (L390)
2 years ago
CGQAQ
fd81cce2cc
feat: upgrade tokio-rustls to 0.24
2 years ago
Carlos Martín Nieto
f8e6c3a8c3
gio: add accept_async and related functions
...
These are the server-side functions just like we have them e.g. for tokio so we
can run servers.
2 years ago
Sebastian Dröge
aed66e94c5
Fix compilation of tests without handshake feature
2 years ago
Icelk
1dd92fc13a
Make handshake dependencies optional.
2 years ago
Daniel Abramov
38bfaa4f10
Implement the `FusedStream` along with `Stream`
3 years ago
Daniel Abramov
3c150d1174
Make the semantics of `Stream` more reasonable
...
Closes https://github.com/snapview/tokio-tungstenite/issues/200
3 years ago
Benoît CORTIER
72fb249d8f
Refactor similar conditional branches in `WebSocketStream::poll_close`
3 years ago
Sebastian Dröge
1a7ac567ea
Fix a couple of minor clippy warnings
3 years ago
Benoît Cortier
a4546af441
Fix typo in comment
...
Co-authored-by: Sebastian Dröge <slomo@coaxion.net>
3 years ago
Benoît CORTIER
4dd8888a9d
Fix `poll_close` returning WouldBlock error kind
3 years ago
Sebastian Dröge
4cc0ffd5f9
Update tungstenite to 0.17, async-native-tls to 0.4 and glib/gio to 0.15
3 years ago
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