• TOC

Half Close

Close(완전 종료)데이터의 전송 뿐만 아니라 수신하는 것 조차 불가능한 상황 을 의미한다.

Half Close 는 송수신 둘 중 하나만 가능한 상황을 의미한다.

What is TCP Half Open Connection and TCP half closed connection:

The History of Half Closed Connection

  • It allows the FIN ack take the role of or be translated as EOF. So it's basically a feature that allows you to casually create impomptu request/response-style interaction on the application layer, where the FIN signals "end of request".

TCP 4 way handshake:

TCP Half Closed timer, which is triggered by the first FIN

TCP 4 way handshake 에서 데이터 전송이 끝난 Client 가 FIN 을 보내고 나면(Client 는 데이터 전송이 불가능한 상태) Server 로 부터 ACK 을 받는다. 그리고 Server 는 FIN 을 보내기 전에 남아있는(잔여) 데이터 를 전송하게 된다. 그리고 FIN 을 Client 로 부터 보내고 Client 로 부터 ACK 을 받게 되면 연결이 종료된다.