TCP Data Transfer

Hello, if we established a TCP session with a server and the client is requesting a file. How does the client know when the file transfer from the server has been completed. For example we haven’t reached the received window size, how does the client know when to ACK the last packet, if the server won’t send a fin packet.

Thanks a lot.

Regards,
Lukas

A post was merged into an existing topic: Introduction to TCP and UDP