Lines Matching defs:closeWithError
2849 // CloseWithError causes the next Read (waking up a current blocked
2854 func (p *http2pipe) CloseWithError(err error) { p.closeWithError(&p.err, err, nil) }
2859 func (p *http2pipe) BreakWithError(err error) { p.closeWithError(&p.breakErr, err, nil) }
2861 // closeWithErrorAndCode is like CloseWithError but also sets some code to run
2863 func (p *http2pipe) closeWithErrorAndCode(err error, fn func()) { p.closeWithError(&p.err, err, fn) }
2865 func (p *http2pipe) closeWithError(dst *error, err error, fn func()) {
2897 // Err returns the error (if any) first set by BreakWithError or CloseWithError.
2908 // with CloseWithError.
4077 p.CloseWithError(err)
4180 st.body.CloseWithError(fmt.Errorf("sender tried to send more than declared Content-Length of %d bytes", st.declBodyBytes))
4237 st.body.CloseWithError(fmt.Errorf("request declared a Content-Length of %d but only wrote %d bytes",
4241 st.body.CloseWithError(io.EOF)
5584 cs.bufPipe.CloseWithError(http2errRequestCanceled)
5587 cs.bufPipe.CloseWithError(ctx.Err())
6606 cs.bufPipe.CloseWithError(err)
7143 cs.bufPipe.CloseWithError(err)