commit | d8d84787ad6422cae430ca5e2455b1e0abf99225 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Aug 09 13:31:38 2023 -0700 |
committer | Damien Neil <dneil@google.com> | Mon Aug 28 15:48:42 2023 +0000 |
tree | 7c22e2fd149b5108f6f5e9cc4825c9343870f97b | |
parent | 3d2be970e8ac4df2e4e5f0dd892c668bafad41cc [diff] |
quic: read-closing and reset streams, wait on close s.Close waits for the peer to acknowledge receipt of sent data before returning. s.ReadClose closes the receive end of a stream, discarding buffered data and sending a STOP_SENDING frame to the peer. s.Reset(code) closes the send end of a stream with an error, which is sent to the peer in a RESET_STREAM frame. Receipt of a STOP_SENDING frame resets the stream locally and causes future writes to fail. Receipt of a RESET_STREAM frame causes future reads to fail. Stream state is currently retained even after a stream has been completely closed. A future CL will add cleanup. For golang/go#58547 Change-Id: I29088ae570db4079926ad426be6e85dace2122da Reviewed-on: https://go-review.googlesource.com/c/net/+/518435 Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.