add OpenStreamSync() method to Session interface

This commit is contained in:
Marten Seemann
2017-02-20 15:49:32 +07:00
parent 9c46ee6b24
commit 592ef45fdf
5 changed files with 18 additions and 2 deletions

View File

@@ -15,9 +15,8 @@ type Session interface {
// guaranteed to return the smallest unopened stream
// special error for "too many streams, retry later"
OpenStream() (utils.Stream, error)
// TODO: implement this
// blocks until a new stream can be opened, if the maximum number of stream is opened
// OpenStreamSync() (utils.Stream, error)
OpenStreamSync() (utils.Stream, error)
RemoteAddr() net.Addr
Close(error) error
}