Mark Doyle
9533c02280
return correct protocol error when missing http version
2 years ago
Daniel Abramov
d7b559d724
Merge pull request #359 from mtbc/allow-IPv6-SocketAddr
...
remove [] enclosing IPv6 host address
2 years ago
Mark T. B. Carroll
8901dcc535
remove [] enclosing IPv6 host address
2 years ago
Alexey Galakhov
8f23e1765e
Merge pull request #358 from alexheretic/buffer-writes
...
Buffer writes before writing to the underlying stream
2 years ago
Alex Butler
f6a610f925
Add write_flush_behaviour test
2 years ago
Alex Butler
dea67d6cca
Fix doc typo
2 years ago
Alex Butler
41818166cf
refactor WebSocketContext new
2 years ago
Alex Butler
0cada00fb5
Refactor write_one_frame -> buffer_frame
2 years ago
Alex Butler
f33bb2cb97
Ensure out_buffer written when !can_read
2 years ago
Alex Butler
1b47964f18
split write and write_out_buffer internals
...
Fix internal method naming
2 years ago
Alex Butler
2ef5b9a5e2
Buffer writes before writing to the underlying stream
...
Add write_buffer_size
Set default 128 KiB
2 years ago
Alex Butler
2cf7cfef04
Rework write 100k bench to have a slow writes & even slower flushes
2 years ago
Alexey Galakhov
5a3115c09b
Merge pull request #357 from alexheretic/flush-writes-less
...
Rework to remove implicit flushes
2 years ago
Alex Butler
06e55a4ef2
Refactor additional_send writing
2 years ago
Alex Butler
84a54b76e6
Rename methods to `read`, `send`, `write` & `flush`
...
Refine docs
Add `send` method
Add deprecated versions of write_message, write_pending,
read_message
Handle pong WriteBufferFull error
Add changelog
2 years ago
Daniel Abramov
79b39eb146
Merge pull request #356 from snapview/dependabot/cargo/criterion-0.5.0
...
Update criterion requirement from 0.4.0 to 0.5.0
2 years ago
Alex Butler
0203a1849b
Remove send_queue, use out_buffer instead
2 years ago
Alex Butler
483d229707
Remove implicit write flushing
2 years ago
Alex Butler
d298089bf3
Add write 100k micro-bench
2 years ago
dependabot[bot]
7242a22b91
Update criterion requirement from 0.4.0 to 0.5.0
...
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs ) to permit the latest version.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.4.0...0.5.0 )
---
updated-dependencies:
- dependency-name: criterion
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Daniel Abramov
371f823044
Merge pull request #354 from CBenoit/fix-error-on-bad-root-cert
...
Gracefully handle invalid native root certificates
2 years 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.
2 years 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