-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(dgw): use a buffer of 1k bytes for ARD VNC sessions #807
perf(dgw): use a buffer of 1k bytes for ARD VNC sessions #807
Conversation
_ARD_ uses _MVS_ video codec which doesn't like buffering, and we need to have the buffer as minimal as possible. Also, this commit adds new `copy_bidirectional` transport that is forked [the one from tokio](https://docs.rs/tokio/latest/tokio/io/fn.copy_bidirectional.html). It's forked because the original function doesn't allow overriding the buffer size (8K is used by default). There is [an issue](tokio-rs/tokio#6454) on tokio side for it. We will be able to replace our fork with the upstream easily when it's ready. Releated to Devolutions/IronVNC#338.
I needed to fork DevolutionsGateway because I don't have the right to push directly to the repo. |
It's easy to add |
Co-authored-by: Benoît Cortier <bcortier@proton.me>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Thank you!
For changelog: Apple ARD uses the so-called MVS video codec. Issue: DGW-138 |
Head branch was pushed to by a user without write access
Perfect 👌 |
I’m sorry. It appears we can’t merge PRs from forks because of the new CI job which requires secrets (devolutions-gateway-web-ui). I’ll merge the code with this PR instead: #809 |
Pull request was closed
ARD uses MVS video codec which doesn't like buffering, and we need to have the buffer as minimal as possible.
Also, this commit adds new
copy_bidirectional
transport that is forked the one from tokio. It's forked because the original function doesn't allow overriding the buffer size (8K is used by default). There is an issue on tokio side for it. We will be able to replace our fork with the upstream easily when it's ready.Releated to https://github.com/Devolutions/IronVNC/issues/338.