hermit-os / hermit-rs

Hermit for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function read in std::net::TcpStream doesn't block

philipp-fensch opened this issue · comments

calling set_nonblocking(false) on the stream returns Error with message "unable to set blocking mode".

Minimal Example, that currently doesn't work in Rusty-Hermit:

Server: (Squares received numbers and sends them back)
https://github.com/philipp-fensch/tcp-server

Client:
Without Rusty-Hermit: https://github.com/philipp-fensch/tcp-client
With Rusty-Hermit: https://github.com/philipp-fensch/rusty-hermit/tree/tcp-stream

I identified the issue and drafted a PR (#208).