Alex Butler
483d229707
Remove implicit write flushing
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
Yang Hau
984ad9d6c7
fix typos
2 years ago
Daniel Abramov
fd96a35300
tests: add a regression test for the queue logic
3 years ago
Alexey Galakhov
0b9d2a649b
Revert "add support for batching websocket messages"
3 years ago
RustUser246
68daa29b19
add support for batching websocket messages
3 years ago
Daniel Abramov
1b999136ef
clippy: fix warnings
3 years ago
Kirill A. Khalitov
469aaf37be
feature: Raw fragment message
3 years ago
Daniel Abramov
5ad8cef6ff
Echo the `CloseFrame` when close is initiated
4 years ago
WiredSound
79dcf9f77c
Use matches! macro in tests
4 years ago
WiredSound
98377cf3dd
Rename ProtocolErrorType to just ProtocolError, implement using thiserror
4 years ago
WiredSound
652a6b776e
Rename CapacityErrorType to just CapacityError, implement using thiserror
4 years ago
WiredSound
0b34bee94f
Add capacity error types
4 years ago
WiredSound
6f846da0e3
Add protocol error types
4 years ago
Adam Bezecny (DHL IT Services)
c8c236056b
if streamlined
4 years ago
Adam Bezecny (DHL IT Services)
2e55ed0fcc
comment streamlined
4 years ago
Adam Bezecny (DHL IT Services)
9f292d21fc
minor fixes
4 years ago
Adam Bezecny (DHL IT Services)
4f7dab5d7b
documentation for server_allow_unmasked improved
4 years ago
Adam Bezecny (DHL IT Services)
a9adb42343
server_allow_unmasked changed from Option<bool> to bool
4 years ago
Adam Bezecny (DHL IT Services)
0121bf9682
WebSocketConfig extended to allow accepting unmasked client frames
4 years ago
Daniel Abramov
96d9eb75e5
chore: apply `fmt` to the whole project
4 years ago
Daniel Abramov
521f1a0767
clean up the redirect logic a bit
4 years ago
Redrield
60f7b0f024
Fix some code-review issues
...
* Replace Redirection error with a general Http error that owns the
response
* Make the default client connect function iterative instead of
recursive
* Add a limit to the amount of redirects a client will attempt to
perform
4 years ago
Horki
88ff5f371f
matches!: use macros; remove unused imports
5 years ago
Naja Melan
9c48226c8f
chore: Remove needless closing/opening of the impl block on WebSocketContext.
5 years ago
Naja Melan
1f407f1005
feat: Allow reading the configuration.
...
This allows wrapper types to correctly split data before creating websocket
messages, guaranteeing to respect the max size.
Notably when the WebSocket is provided by user code.
5 years ago
Naja Melan
d17f749914
doc: be precise about max message sizes.
...
If preferred to avoid abbreviations, it could be called mebibytes.
5 years ago
Alexey Galakhov
6b3423292f
trivial: fix clippy warning
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
85f211230a
websocket: add `can_read()` and `can_write()`
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
da3acc107e
protocol: handle "Connection reset by peer" in closing state
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Sebastian Dröge
88760b8b59
Fix various clippy warnings
5 years ago
Sebastian Dröge
7a4779b6f6
Run everything through rustfmt
5 years ago
Naja Melan
17fe7987eb
Make use of can_read
6 years ago
Naja Melan
1ee3f342aa
Consider remote sending a frame after sending a close frame a protocol error.
...
The websocket RFC explicitly states this is not allowed.
6 years ago
Naja Melan
2918eec1b3
No longer accept to send after close
6 years ago
Naja Melan
f818322a25
Add some documentation to WebSocket and Error.
6 years ago
Naja Melan
9379ebe47d
Don't swallow ping/pong while waiting for close acknowledgement
6 years ago
Naja Melan
bf63a71cd1
cleanup unnecessary dereference
6 years ago
Naja Melan
28579b567a
Improve WebSocketState interface with Copy, PartialEq, ...
6 years ago
Naja Melan
b923ec42c0
Keep processing incoming data even after we have initiated a close handshake.
6 years ago
Artem Vorotnikov
cbf80ecc76
Edition 2018, formatting, clippy fixes
6 years ago
Daniel Abramov
e2bec4b81f
Change the way we return `Err::ConnectionClosed`
...
This way will ensure that we only return this error once. The previous
solution fixed the problem, but it did not guarantee that ""connection
closed" is returned only once.
6 years ago
Daniel Abramov
dbc8bd7b71
Fix issue with hanging server connection
6 years ago
Alexey Galakhov
06308b1b3f
close: fix autobahn regression
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
6 years ago
Alexey Galakhov
b8f7d3668e
close: refine close semantics
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
6 years ago
Yusuke Sasaki
828eafd400
extract the context values from `WebSocket`
6 years ago
Daniel Abramov
c8c3d6290d
Make `Close` part of the `Message` enum
6 years ago
Alexey Galakhov
a7e87488c4
config: make config settable at runtime
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
7 years ago
Alexey Galakhov
9b0a2e0f11
trivial: split public and private impl
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
7 years ago