Network timeout preventing a Web browser from loading a page

In telecommunications and related engineering (including computer networking and programming), the term timeout or time-out has several meanings, including:

  • A network parameter related to an enforced event designed to occur at the conclusion of a predetermined elapsed time.
  • A specified period of time that will be allowed to elapse in a system before a specified event is to take place, unless another specified event occurs first; in either case, the period is terminated when either event takes place. Note: A timeout condition can be canceled by the receipt of an appropriate time-out cancellation signal.
  • An event that occurs at the end of a predetermined period of time that began at the occurrence of another specified event. The timeout can be prevented by an appropriate signal.

Timeouts allow for more efficient usage of limited resources without requiring additional interaction from the agent interested in the goods that cause the consumption of these resources. The basic idea is that in situations where a system must wait for something to happen, rather than waiting indefinitely, the waiting will be aborted after the timeout period has elapsed. This is based on the assumption that further waiting is useless, and some other action is necessary.

Challenges

edit

Balancing timeout values in distributed systems and microservices can be tricky: short timeout values can fail healthy requests prematurely, leading to complex workarounds, while long timeout values can result in slow error responses and poor user experiences. The circuit breaker design pattern can be a better alternative, as it can monitor service health, detect failures dynamically and faster, and improve the user experience.[1]

Examples

edit
timeout
DevelopersMicrosoft, ReactOS Contributors
Operating systemWindows, ReactOS
TypeCommand
LicenseWindows: Proprietary commercial software
ReactOS: GNU General Public License
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/timeout_1

Specific examples include:

  • In the Microsoft Windows and ReactOS[2] command-line interfaces, the timeout command pauses the command processor for the specified number of seconds.[3][4]
  • In POP connections, the server will usually close a client connection after a certain period of inactivity (the timeout period). This ensures that connections do not persist forever, if the client crashes or the network goes down. Open connections consume resources, and may prevent other clients from accessing the same mailbox.
  • In HTTP persistent connections, the web server saves opened connections (which consume CPU time and memory). The web client does not have to send an "end of requests series" signal. Connections are closed (timed out) after five minutes of inactivity; this ensures that the connections do not persist indefinitely.
  • In a timed light switch, both energy and lamp's life-span are saved. The user does not have to switch off manually.
  • Tablet computers and smartphones commonly turn off their backlight after a certain time without user input.
  • To prevent a ReDoS (regular expression denial of service), one can use timeouts to cancel regular expression matching calls that exceed a time threshold.[5]

See also

edit

References

edit
  1. ^ Richards, Mark (2016). Microservices AntiPatterns and Pitfalls. Sebastopol, CA: O'Reilly. OCLC 1040037729.
  2. ^ "timeout.c". Retrieved 27 September 2025 – via GitHub.
  3. ^ "timeout". docs.microsoft.com. 3 February 2023. Retrieved 27 September 2025.
  4. ^ "TIMEOUT.exe (Windows 7/2008 or later)". ss64.com. Retrieved 27 September 2025.
  5. ^ "Regex.MatchTimeout Property (System.Text.RegularExpressions)". learn.microsoft.com. Retrieved 15 September 2025.

Further reading

edit

📚 Artikel Terkait di Wikipedia

Communication protocol

from receivers back to their respective senders. Loss of information - timeouts and retries Packets may be lost on the network or be delayed in transit

High-Level Data Link Control

communication protocol used for transmitting data between devices in telecommunication and networking. Developed by the International Organization for Standardization

IL (network protocol)

delivery Internetworking using IP Low complexity, high performance Adaptive timeouts As of the Fourth Edition of Plan 9, 2003, IL is deprecated in favor of

Zoom (software)

participants at once, with a 40-minute time limit. There is a 10-minute timeout period between free 40-minute meetings. For longer or larger conferences

Bluetooth

(SIG), which has more than 35,000 member companies in the areas of telecommunication, computing, networking, and consumer electronics. The IEEE standardized

OSI model

the Telecommunications Standardization Sector of the International Telecommunication Union or ITU-T) as standard X.200. OSI had two major components: an

Dial-up Internet access

as the norm, and when connected to with slower dial-up speeds may drop (timeout) these slower connections to free up communication resources. On websites

Automatic identification system

a random timeout of between 4 and 8 minutes. When a station changes its slot assignment, it announces both the new location and the timeout for that location