Refine package description

This commit is contained in:
Tevin Zhang 2016-06-01 19:02:11 +08:00
parent b1b6beb4d3
commit ecd883184f
2 changed files with 4 additions and 4 deletions

View File

@ -3,14 +3,14 @@
Performing TCP handshake without ACK, useful for health checking.
HAProxy do this exactly the same, which is:
HAProxy does this exactly the same, which is:
- SYN
- SYN-ACK
- RST
## Why do I have to do this?
Usually when you establish a TCP connection(e.g. net.Dial), these are the first three packets (TCP three-way handshake):
Usually when you establish a TCP connection(e.g. `net.Dial`), these are the first three packets (TCP three-way handshake):
- Client -> Server: SYN
- Server -> Client: SYN-ACK

View File

@ -1,5 +1,5 @@
// Package tcp is used to perform TCP handshake without ACK.
// Useful for health checking, HAProxy do this exactly the same.
// Package tcp is used to perform TCP handshake without ACK,
// useful for health checking, HAProxy does this exactly the same.
// Which is SYN, SYN-ACK, RST.
//
// Why do I have to do this?