Skip to content

Buffer space error with example client #2

Open
@plauche

Description

@plauche

Hi,

I tried out the example UDT client code and I keep getting this error Error: Os { code: 55, kind: Uncategorized, message: "No buffer space available" }. I'm running macOS 13.1 on a fairly modern machine, and have run into this error before and after rebooting, so I don't think it's an issue with local resource availability.

I did some digging and traced the error down to tokio-udt/src/multiplexer.rs:41. Have you run into this error when using this library?

Example code used:

use std::net::Ipv4Addr;
use tokio::io::{AsyncWriteExt, Result};
use tokio_udt::UdtConnection;

#[tokio::main]
async fn main() -> Result<()> {
    let port = 9000;
    let mut connection = UdtConnection::connect((Ipv4Addr::LOCALHOST, port), None).await?;
    loop {
        connection.write_all(b"Hello World!").await?;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions