Skip to content

SO_RCVTIMEO is advertized but not supported #2711

Description

@mkroening

SO_RCVTIMEO was added by @stlankes in hermit-os/hermit-rs@a633acd.

#2710 makes them known to the kernel.

This constant is used in the wild, such as urec 2 (#2490). To reproduce:

[package]
name = "hello_world"
edition = "2021"

[target.'cfg(target_os = "hermit")'.dependencies]
hermit = { path = "../../hermit" }

[features]
default = ["hermit/acpi", "hermit/pci", "hermit/loader", "hermit/strace", "hermit/dns"]

[dependencies]
ureq = { version = "2", default-features = false }
#[cfg(target_os = "hermit")]
use hermit as _;

fn main() -> Result<(), ureq::Error> {
    let body: String = ureq::get("http://example.com")
        .set("Example-Header", "header value")
        .call()?
        .into_string()?;
	dbg!(body);
    Ok(())
}
cargo xtask ci rs --arch x86_64 --package hello_world qemu --devices virtio-net-pci

Should we implement it or just ignore it as proposed in #2490?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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