-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close TCP, TLS connections gracefully to avoid data loss (#123)
TCP connections, including TLS connections, acknowledge received data. Although a simple `net.Conn.Close()` will put all previously written data on the network, the receiving server may disregard data that it can't successfully acknowledge. Graceful acknowledgement and closure can be facilitated by the client closing writes first, and reading any available data before fully closing the connection.
- Loading branch information
1 parent
ab7b158
commit df7b22c
Showing
3 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
TCP, TLS outputs: Close connections gracefully to avoid data loss. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters