About Socket Connection at Application Termination

k_y_pop 1 Reputation point
2022-10-21T09:44:03.7+00:00

I have a question about the behavior of Windows, so I will ask you a question.

【environment】

OS: Windows 10

Application: Self-made (implements socket connection Open/Close processing)

A Windows PC is connected to a HUB with a wired LAN cable, and there is a LAN port ahead of it.

Hardware exists and is controlled by TCP communication.

While the self-made application is running on Windows, suddenly forcibly terminate it from the outside for operational reasons

You may be forced to (The process is dropped with taskkill)

Looking at the packet at that time, an RST packet was sent, and the connection with the hardware was broken.

I confirmed that it was disconnected, but this packet was sent by WindowsOS to the application

Is it sent after monitoring the state?

Also, it seems that the above RST is sent and not, and the difference is

I'm having trouble understanding something.

I would like to know if there is anything that can be a hint for a solution.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,346 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.