Carlos Martín Nieto
7805e80aec
gio-echo-server: add an example with a SocketService
...
This lets us use the SocketService we might already want to use and use it for a
websocket server.
2 years ago
Carlos Martín Nieto
fe1c2aeb95
gio-echo: explicitly close the stream
...
Not doing so means we rudely disconnect from the socket without clong out our
websocket stream
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
da62f071f5
Release 0.20.0
2 years ago
Sebastian Dröge
fa9d6c01dc
Update async-tls to 0.12, env-logger to 0.10 and glib/gio to 0.17
2 years ago
Sebastian Dröge
4e59da8e50
Release 0.19.0
2 years ago
Sebastian Dröge
aed66e94c5
Fix compilation of tests without handshake feature
2 years ago
Sebastian Dröge
44748227ab
ci: Also check running with --no-default-features
2 years ago
Daniel Abramov
e730269144
Feature-gate handshakes / communication test
2 years ago
Icelk
1dd92fc13a
Make handshake dependencies optional.
2 years ago
Remalloc
952681ed06
Fix the unreachable test url
2 years ago
Sebastian Dröge
86556189e3
Update CHANGELOG.md for 0.18.0
2 years ago
Sebastian Dröge
5ca913b839
Update to glib/gio 0.16
2 years ago
Ahmed Charles
2e61ecbbb1
Add an example of using tungstenite with a custom accept.
2 years ago
Daniel Abramov
31dac03929
autobahn: make timeout higher
...
It seems like GitHub Actions went slower in the last months since we
sometimes observe a problem when our `autobahn-server` is not started
quickly enough which leads to the autobahn suite trying to connect to
the server that is not yet running resulting into failed pipeline.
See https://github.com/snapview/tokio-tungstenite/runs/6658266507?check_suite_focus=true
2 years ago
Sebastian Dröge
f5025ed696
Release 0.17.2
3 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
Daniel Abramov
683385b323
Update the autobahn tests to match `tungstenite`
...
See https://github.com/snapview/tungstenite-rs/pull/271/files
3 years ago
kazk
d2d8744c2e
Fix autobahn scripts
3 years ago
Benoît CORTIER
72fb249d8f
Refactor similar conditional branches in `WebSocketStream::poll_close`
3 years ago
Sebastian Dröge
01282a029f
Update version to 0.17.1
3 years ago
Sebastian Dröge
02f00f583f
Update CHANGELOG.md for 0.17.1
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
Leo
dfa69eaea4
Fix the echo server example to prevent ConnectionClosed error ( #189 )
...
Related #188
The echo server would generate ConnectionClosed error when the peer
close the connection normally. This is because that `tungstenite` crate
automatically reply Close message to the peer. Then StreamExt::forward()
also forwards the Close message after the connection is closed.
3 years ago
Sebastian Dröge
3af5ff5c3b
Update version to 0.16.1
3 years ago
Andy Russell
a1521f4c09
strip IPv6 brackets before connecting to IP
3 years ago
Sebastian Dröge
558d0af2d4
Update CHANGELOG.md for 0.16.0
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
2cc6125411
Update to version 0.15.0
3 years ago
Sebastian Dröge
ee6c24d327
Update to tungstenite 0.15
3 years ago
Sebastian Dröge
e1ef88d0e3
Update to tungstenite 0.14 and env_logger 0.9
3 years ago
Dominik Nakamura
f69a7fa035
Use 127.0.0.1 in tests to avoid firewall warnings
3 years ago
Daniel Abramov
714e096ae4
tests: fix confusing wrong paths in the scripts
3 years ago
Daniel Abramov
1c9e7ea8fb
tests: use autobahn test suite as docker image
...
According to the documentation from the Autobahn Suite GitHub page, it
seems like they do not support Python 3 which is currently the default
Python version used with our GitHub Actions.
The simplest way to workaround it properly seems to be using the Docker
image that the maintainers of the project suggest to use for running the
suite. This is more future-proof way that we should rely upon.
This commit also removes some redundant steps that are not required.
3 years ago
Dominik Nakamura
fcb209d6de
Reduce crate package size
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
Sebastian Dröge
b201d954cc
Update version to 0.14.0 and release
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
9a451996e0
ci: fix ci file to test new features
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
09ba02ef15
Update version to 0.13.1
4 years ago