Skip to content

A few small typo fixes #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

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ch04/a-epoll/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ from a `TcpStream` that's reported as ready is very hard, but if you
want to test it out I managed to reliably get that error by simply transferring
so much data that the OS needs to do extra work to handle it.

You can reproduce it if you make som minor changes to the delayserver code
You can reproduce it if you make some minor changes to the delayserver code
as well as the program in `main.rs`` as outlined below. Simply copy and replace
the appropriate functions with these will do it.

Expand Down
7 changes: 3 additions & 4 deletions ch04/b-epoll-mio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ You can run the example by simply writing `cargo run`

## Note

There is one downside of having a local server on the same machine to mimmic
There is one downside of having a local server on the same machine to mimic
real life behavior. The network will never be slow, and packages will never
need to be resent. Latency is not a problem either.

Expand All @@ -20,11 +20,11 @@ so much data that the OS needs to do extra work to handle it.

You can reproduce it if you make som minor changes to the delayserver code
as well as the program in main.rs as outlined below. Simply copy and replace
the appropirate functions with these will do it.
the appropriate functions with these will do it.


First, change the `delay` function on the delayserver to return huge amount of fill data
(enough to force a `WouldBlock` error on the reciever):
(enough to force a `WouldBlock` error on the receiver):

```rust
#[get("/{delay}/{message}")]
Expand Down Expand Up @@ -73,4 +73,3 @@ fn handle_events(events: &[Event], streams: &mut [TcpStream]) -> Result<usize> {
Ok(handled_events)
}
```