Alex Butler
|
0cada00fb5
|
Refactor write_one_frame -> buffer_frame
|
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
|
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 |
Alex Butler
|
0203a1849b
|
Remove send_queue, use out_buffer instead
|
2 years ago |
Alex Butler
|
483d229707
|
Remove implicit write flushing
|
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
|
2787031c2f
|
Replace `InputBuffer` with a faster alternative
We're also deprecating the usage of `input_buffer` crate, see:
https://github.com/snapview/input_buffer/issues/6#issuecomment-870548303
|
4 years ago |
WiredSound
|
79dcf9f77c
|
Use matches! macro in tests
|
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 |
Daniel Abramov
|
96d9eb75e5
|
chore: apply `fmt` to the whole project
|
4 years ago |
Sebastian Dröge
|
7a4779b6f6
|
Run everything through rustfmt
|
5 years ago |
Alexey Galakhov
|
2903a02ef5
|
frame: correct possible infinite loop on sending
Closes: #83
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
6 years ago |
Artem Vorotnikov
|
cbf80ecc76
|
Edition 2018, formatting, clippy fixes
|
6 years ago |
Yusuke Sasaki
|
828eafd400
|
extract the context values from `WebSocket`
|
6 years ago |
Alexey Galakhov
|
e6ebf5ac76
|
trivial: style fixes
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Alexey Galakhov
|
3772aaf163
|
chore: introduce frame size limit
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Alexey Galakhov
|
75aa0d54f3
|
refactor: parse header separately from payload
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Sean Schwartz
|
66d2c15f2d
|
Derive Debugs
Deny missing debug and resolve resulting errors to satisfy:
https://rust-lang-nursery.github.io/api-guidelines/debuggability.html#all-public-types-implement-debug-c-debug
Requires updated input_buffer pushed to crates.io:
- Resolved build errors by using github version of code until new version available on crates.io
Upgrade env_logger dev-dependency to v0.5.3
- Removed unwrap call from env_logger::init() as it is no longer needed.
|
7 years ago |
Alexey Galakhov
|
6f8c4e7034
|
Use input_buffer as separate crate.
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
7 years ago |
Alexey Galakhov
|
6d10b40215
|
Flush stream after sending message
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
01a9211a84
|
Move mask functions into a separate file
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
bd37c71609
|
Replace tuple with CloseFrame struct
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
e2b7b73e72
|
Improve documentation.
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
06a39b4962
|
protocol: add get_ref() and get_mut()
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
|
8 years ago |
Alexey Galakhov
|
9e00140e19
|
trivial: debug logging cleanup
|
8 years ago |
Alexey Galakhov
|
604e2021ce
|
protocol: add write_pending() functions
The semantics of write_message() and write_frame()
is changed accordingly.
|
8 years ago |
Alexey Galakhov
|
422f7bbc45
|
trivial: move MIN_READ to input_buffer
|
8 years ago |
Alexey Galakhov
|
e63f594a14
|
Initial commit, mostly working client
|
8 years ago |