When the client send the data to the server, the server process it and
return the results but don't close the connection because the client
may have more data to send.
But even if I don't call the conn.Close() on the server, the server
sends an TCP FIN packet to the client (I checked that with the
Wireshark). So my question is why the server is sending that FIN
package?
--
André Moraes
http://andredevchannel.blogspot.com/
2010/10/21 André Moraes <and...@gmail.com>:
for !exitLoop {
/// codes
69: conn.Close()
}
I don't think the exitLoop flag is needed, calling break (lines 51,
54, 63 and 67) will exit the for loop
Cheers
Dave
2010/10/22 André Moraes <and...@gmail.com>: