- Mastering Concurrency in Python
- Quan Nguyen
- 114字
- 2021-06-10 19:24:09
The problem of timeout
In this section, we will explore a potential improvement to be made to our ping test application: timeout handling. Timeouts typically occur when the server takes an unusually long time to process a specific request, and the connection between the server and its client is terminated.
In the context of a ping test application, we will be implementing a customized threshold for the timeout. Recall that a ping test is used to determine whether specific servers are still responsive, so we can specify in our program that, if a request takes more than our timeout threshold for the server to response, we will categorize that specific server with a timeout.
推薦閱讀
- Mastering Entity Framework Core 2.0
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- Photoshop智能手機APP UI設計之道
- Learning Flask Framework
- FFmpeg入門詳解:音視頻流媒體播放器原理及應用
- Practical Windows Forensics
- 機械工程師Python編程:入門、實戰與進階
- 游戲程序設計教程
- 鋒利的SQL(第2版)
- ASP.NET開發與應用教程
- Mastering Apache Storm
- Mastering Elixir
- Python預測分析與機器學習
- Tableau Dashboard Cookbook
- jQuery Mobile Web Development Essentials(Second Edition)