- 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.
推薦閱讀
- 測(cè)試驅(qū)動(dòng)開發(fā):入門、實(shí)戰(zhàn)與進(jìn)階
- Oracle Exadata性能優(yōu)化
- Learning PostgreSQL
- Power Up Your PowToon Studio Project
- Learning Spring 5.0
- Instant 960 Grid System
- 區(qū)塊鏈:以太坊DApp開發(fā)實(shí)戰(zhàn)
- Python完全自學(xué)教程
- C語(yǔ)言課程設(shè)計(jì)
- JAVA程序設(shè)計(jì)實(shí)驗(yàn)教程
- 零基礎(chǔ)入門學(xué)習(xí)Python(第2版)
- ExtJS高級(jí)程序設(shè)計(jì)
- Learning iOS Security
- Node.js 6.x Blueprints
- Office VBA開發(fā)經(jīng)典:中級(jí)進(jìn)階卷