Merge pull request #1301 from lucas-clemente/improve-stream-open-doc

improve API documentation for opening new streams
This commit is contained in:
Marten Seemann
2018-04-17 19:19:35 +09:00
committed by GitHub

View File

@@ -121,6 +121,8 @@ type Session interface {
AcceptUniStream() (ReceiveStream, error)
// OpenStream opens a new bidirectional QUIC stream.
// It returns a special error when the peer's concurrent stream limit is reached.
// There is no signaling to the peer about new streams:
// The peer can only accept the stream after data has been sent on the stream.
// TODO(#1152): Enable testing for the special error
OpenStream() (Stream, error)
// OpenStreamSync opens a new bidirectional QUIC stream.