Closing a socket basically means that you will not use that socket for sending anymore. So you can still receive on it. This is why it is called a half close. Don't know why you see more than one zero packet sizes. This should occur only once because it is an indication that the peer side has closed its connection.
P
Philip Stuyck
@Philip Stuyck
Posts
-
A question about closing socket -
Why TCP is evil and HTTP is kingIt is even like this that HTTP is a protocol on top of TCP, so how evil can TCP be. :)