internal: check flush err (#2632)

This commit is contained in:
Jean de Klerk
2019-02-08 16:17:16 -07:00
committed by GitHub
parent 2259ee6f1a
commit 5d5c0ac4a3

View File

@ -322,7 +322,9 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr TargetInfo, opts Conne
}
}
t.framer.writer.Flush()
if err := t.framer.writer.Flush(); err != nil {
return nil, err
}
go func() {
t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst)
err := t.loopy.run()