- 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.
推薦閱讀
- Beginning C++ Game Programming
- Learning Selenium Testing Tools with Python
- 自己動(dòng)手寫Java虛擬機(jī)
- Java應(yīng)用開發(fā)與實(shí)踐
- Arduino開發(fā)實(shí)戰(zhàn)指南:LabVIEW卷
- 假如C語(yǔ)言是我發(fā)明的:講給孩子聽的大師編程課
- PHP+MySQL+Dreamweaver動(dòng)態(tài)網(wǎng)站開發(fā)實(shí)例教程
- Building Minecraft Server Modifications
- Mastering KnockoutJS
- Learning Python Design Patterns
- C++新經(jīng)典
- Haskell Data Analysis Cookbook
- WordPress 4.0 Site Blueprints(Second Edition)
- Creating Data Stories with Tableau Public
- 深入理解C指針