mirror of
https://github.com/gnu4cn/rust-lang-zh_CN.git
synced 2025-03-26 20:11:11 +08:00
Update Ch20
This commit is contained in:
parent
108032050d
commit
5ee043d69f
@ -484,4 +484,4 @@ fn handle_conn(mut stream: TcpStream) {
|
||||
|
||||
**Simulating a Slow Request in the Current Server Implemenation**
|
||||
|
||||
咱们将看看一个慢速处理的请求,能怎样应用到咱们当前服务器实现的其他请求。
|
||||
咱们将看看一个慢速处理的请求,能怎样应用到咱们当前服务器实现的其他请求。下面清单 20-10 以将导致服务器在响应前睡眠 5 秒的一个模拟慢速请求,实现了对到 `/sleep` 请求的处理。
|
||||
|
Loading…
Reference in New Issue
Block a user