Alex Butler
483d229707
Remove implicit write flushing
1 year ago
Alex Butler
d298089bf3
Add write 100k micro-bench
1 year ago
Daniel Abramov
371f823044
Merge pull request #354 from CBenoit/fix-error-on-bad-root-cert
...
Gracefully handle invalid native root certificates
1 year ago
Benoît CORTIER
ee3ffc9e9d
Gracefully handle invalid native root certificates
...
Before this patch, the `rustls::RootCertStore::add` method was used
to add all the root certificates found by `rustls_native_certs` crate.
This is a problem when an ancient or invalid certificate is present
in the native root store. `rustls` documentation says the following:
> This is suitable for a small set of root certificates that
> are expected to parse successfully. For large collections of
> roots (for example from a system store) it is expected that
> some of them might not be valid according to the rules `rustls`
> implements. As long as a relatively limited number of certificates
> are affected, this should not be a cause for concern. Use
> `RootCertStore::add_parsable_certificates` in order to add as many
> valid roots as possible and to understand how many certificates have
> been diagnosed as malformed.
With this patch, `RootCertStore::add_parsable_certificates` is used
instead for maximal compability with system store.
> Parse the given DER-encoded certificates and add all that can be
> parsed in a best-effort fashion.
>
> This is because large collections of root certificates often include
> ancient or syntactically invalid certificates.
1 year ago
Daniel Abramov
e5efe537b8
Merge pull request #351 from nickelc/deps/webpki
...
Remove unused `TlsError::Webpki` error variant
2 years ago
Constantin Nickel
8a436e7550
Remove unused `TlsError::Webpki` error variant
...
The error variant is no longer needed since `rustls` 0.21.
2 years ago
Daniel Abramov
314feea305
Merge pull request #348 from atouchet/trv
...
Switch build status badge to GitHub Actions
2 years ago
Alex Touchet
50d5a37bdc
Switch build status badge to GitHub Actions
2 years ago
Daniel Abramov
79fa37888f
Merge pull request #347 from snapview/github-actions
...
Exchange Travis CI for GitHub Actions
2 years ago
Daniel Abramov
746d938412
Use `cargo fmt` from nightly
2 years ago
Daniel Abramov
a4863d3f10
Make code compile with any feature set
2 years ago
Daniel Abramov
7e4a15446d
Properly activate features for examples and tests
2 years ago
Daniel Abramov
87e9f576af
Make `cargo fmt` happy
2 years ago
Daniel Abramov
e758f7dc2a
Exchange Travis CI for GitHub Actions
2 years ago
Daniel Abramov
869a67ca0b
Bump version
2 years ago
Daniel Abramov
a873befaae
Merge pull request #345 from mlemesle/fix/webpki-error-variant
...
Fix not compiling features rustls-tls-native-roots and rustls-tls-webpki-roots
2 years ago
Martin Lemesle
1f6c62d301
Fix not compiling features rustls-tls-native-roots and rustls-tls-webpki-roots
2 years ago
dependabot[bot]
92d65e1104
Update webpki-roots requirement from 0.22 to 0.23 ( #343 )
...
Updates the requirements on [webpki-roots](https://github.com/rustls/webpki-roots ) to permit the latest version.
- [Release notes](https://github.com/rustls/webpki-roots/releases )
- [Commits](https://github.com/rustls/webpki-roots/commits )
---
updated-dependencies:
- dependency-name: webpki-roots
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Daniel Abramov
67e25fdd68
Merge pull request #341 from snapview/dependabot/cargo/rustls-0.21.0
...
Update rustls requirement from 0.20.0 to 0.21.0
2 years ago
dependabot[bot]
1422d47ec0
Update rustls requirement from 0.20.0 to 0.21.0
...
Updates the requirements on [rustls](https://github.com/rustls/rustls ) to permit the latest version.
- [Release notes](https://github.com/rustls/rustls/releases )
- [Changelog](https://github.com/rustls/rustls/blob/main/RELEASE_NOTES.md )
- [Commits](https://github.com/rustls/rustls/compare/v/0.20.0...v/0.21.0 )
---
updated-dependencies:
- dependency-name: rustls
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Daniel Abramov
42b8797e8b
Revert "Add `permessage-deflate` support"
...
This reverts commit edb2377540
.
See https://github.com/snapview/tungstenite-rs/pull/328#issuecomment-1480349206
2 years ago
kazk
edb2377540
Add `permessage-deflate` support
2 years ago
Daniel Abramov
e1033afd95
Merge pull request #337 from A5rocks/fix-frame-display
...
Display correct payload in Frame::fmt
2 years ago
EXPLOSION
5125c59dfa
Display correct payload in Frame::fmt
2 years ago
Jack Wills
657faf427f
docs: message.rs typo
...
Simple typo fix of is_close() method
2 years ago
Sebastian Dröge
c6769e3dae
Switch from base64 0.20 to data-encoding 2
...
base64 0.21 deprecated the simple API and requires quite a bit more code
for the simple usage here, while data-encoding provides exactly the API
needed and is also actively maintained.
2 years ago
dependabot[bot]
c469214dd3
Update base64 requirement from 0.13.0 to 0.20.0 ( #326 )
...
Updates the requirements on [base64](https://github.com/marshallpierce/rust-base64 ) to permit the latest version.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases )
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md )
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: base64
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
ssrlive
3fc7fb412c
Mark some functions as public ( #315 )
...
Fixes #315 .
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
2 years ago
Daniel Abramov
72c6f6cdd0
Bump version ( #322 )
2 years ago
dependabot[bot]
85f153c6fc
Update env_logger requirement from 0.9.0 to 0.10.0 ( #320 )
...
Updates the requirements on [env_logger](https://github.com/rust-cli/env_logger ) to permit the latest version.
- [Release notes](https://github.com/rust-cli/env_logger/releases )
- [Changelog](https://github.com/rust-cli/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rust-cli/env_logger/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Daniel Abramov
7174996e77
Merge pull request #319 from howjmay/typo
...
fix typos
2 years ago
Yang Hau
984ad9d6c7
fix typos
2 years ago
Alexey Galakhov
c7e9e0cbae
Merge pull request #317 from atouchet/lic
...
Use SPDX license format
2 years ago
Alex Touchet
eb9d440a14
Use SPDX license format
2 years ago
Alexey Galakhov
438210688f
Merge pull request #298 from riptide-org/ISSUE-199-READ-BODY-ON-FAILED-READ
...
Error response on client type returns request body upon non receiving non 101 status code from server
2 years ago
Josiah Bull
1c657d4c6a
feat: switched response type from Vec<u8> to Option<Vec<u8>> to allow returning of differentiation of no body from empty body.
2 years ago
Josiah Bull
36ab770059
feat: error type returns `Vec<u8>` instead of `Option<String>`
2 years ago
Josiah Bull
4a7beaa897
feat: error responses return body upon non 101 status code
...
modified `client::Response` type to contain `String` instead of `()` to achieve this.
2 years ago
Daniel Abramov
b473e19f7e
Merge pull request #302 from snapview/dependabot/cargo/criterion-0.4.0
...
Update criterion requirement from 0.3.4 to 0.4.0
2 years ago
dependabot[bot]
0b573efb6b
Update criterion requirement from 0.3.4 to 0.4.0
...
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs ) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases )
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.4...0.4.0 )
---
updated-dependencies:
- dependency-name: criterion
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Daniel Abramov
96f9cb9ad8
Merge pull request #301 from Icelk/master
...
Make handshake dependencies optional.
2 years ago
Icelk
4023390d38
Make handshake dependencies optional.
2 years ago
Daniel Abramov
1978a1b5ff
Merge pull request #299 from benesch/patch-1
...
Switch from `sha-1` to `sha1`
2 years ago
Nikhil Benesch
4bea1dfb70
Switch from `sha-1` to `sha1`
...
The RustCrypto project recently got control of the crate name `sha1`. This
commit switches over to the new name; the old `sha-1` name is now deprecated.
Details: https://github.com/RustCrypto/hashes/pull/350
2 years ago
Alexey Galakhov
137b690abe
Merge pull request #294 from snapview/queue-unit-test
...
tests: add a regression test for the queue logic
2 years ago
Daniel Abramov
fd96a35300
tests: add a regression test for the queue logic
2 years ago
Alexey Galakhov
f85eaaddaa
Merge pull request #292 from snapview/revert-291-buffering
...
Revert "add support for batching websocket messages"
2 years ago
Alexey Galakhov
0b9d2a649b
Revert "add support for batching websocket messages"
2 years ago
Alexey Galakhov
3edc4c286b
Merge pull request #291 from RustUser246/buffering
...
add support for batching websocket messages
2 years ago
RustUser246
68daa29b19
add support for batching websocket messages
2 years ago