Skip to content
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

Error with CryptoVec #305

Open
pythops opened this issue Jun 15, 2024 · 0 comments
Open

Error with CryptoVec #305

pythops opened this issue Jun 15, 2024 · 0 comments

Comments

@pythops
Copy link

pythops commented Jun 15, 2024

Hi,
I used the russh library to build a TUI with ratatui, inspired by your example, and from time to time I get those errors:

Failed to send data: Err(CryptoVec { p: 0xffffb8001920, size: 25, capacity: 32 })
Failed to send data: Err(CryptoVec { p: 0xffffb8029ef0, size: 0, capacity: 1 })
Failed to send data: Err(CryptoVec { p: 0xffffb8000d00, size: 25, capacity: 32 })
Failed to send data: Err(CryptoVec { p: 0xffffb8029ef0, size: 0, capacity: 1 })
Failed to send data: Err(CryptoVec { p: 0xffffb8024aa0, size: 25, capacity: 32 })
Failed to send data: Err(CryptoVec { p: 0xffffb8029ef0, size: 0, capacity: 1 })

When those errors start to happen then the server can not take any new request.

It happens in the Handler when trying to send the data.

...
        futures::executor::block_on(async move {
            let result = handle.data(channel_id, data).await;
            if result.is_err() {
                eprintln!("Failed to send data: {:?}", result);
            }
        });
...

I do not know why they suddenly happen.

Have you seen this before ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant