sbyeol3/http-study

[4장 TCP] What does timeout means on HTTP connection? and what is Keep-alive

Opened this issue · 0 comments

https://stackoverflow.com/questions/49704708/what-is-a-connection-timeout-during-a-http-request

1. 소개

개발을 할 때 connection timeout은 일반적으로 서버가 응답을 주지 않아도 얼마 기간동안 기다리는 것을 timeout 이라 한다. 그런데 4장 내용을 읽다가 timeout이 여러가지 상황에서 혼용되고 있다고 느껴서 정리를 했다.

2. 개요

  1. Connection timeout -> (클라이언트 입장)서버가 응답을 처리하지 못해도 특정 시간동안 기다리는 것.
  2. Request timeout -> (서버입장)서버와 클라이언트가 연결이 맺어지면 클라이언트는 주기적으로 데이터를 보내야하는것.
  3. Time to live (TTL) -> 특정 시간이 지나면 사라지는 것. 네트워크 플러딩을 방지하기 위함.

https://goodgid.github.io/HTTP-Keep-Alive/