File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ You can run the example by simply writing `cargo run`
9
9
10
10
## Note
11
11
12
- There is one downside of having a local server on the same machine to mimmic
12
+ There is one downside of having a local server on the same machine to mimic
13
13
real life behavior. The network will never be slow, and packages will never
14
14
need to be resent. Latency is not a problem either.
15
15
@@ -20,11 +20,11 @@ so much data that the OS needs to do extra work to handle it.
20
20
21
21
You can reproduce it if you make som minor changes to the delayserver code
22
22
as well as the program in main.rs as outlined below. Simply copy and replace
23
- the appropirate functions with these will do it.
23
+ the appropriate functions with these will do it.
24
24
25
25
26
26
First, change the ` delay ` function on the delayserver to return huge amount of fill data
27
- (enough to force a ` WouldBlock ` error on the reciever ):
27
+ (enough to force a ` WouldBlock ` error on the receiver ):
28
28
29
29
``` rust
30
30
#[get(" /{delay}/{message}" )]
@@ -73,4 +73,3 @@ fn handle_events(events: &[Event], streams: &mut [TcpStream]) -> Result<usize> {
73
73
Ok (handled_events )
74
74
}
75
75
```
76
-
You can’t perform that action at this time.
0 commit comments