Add unsafe tag to multiplexer writer

This commit is contained in:
世界 2022-08-04 00:00:07 +08:00
parent 5f566b140f
commit 32201cacda
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -217,6 +217,13 @@ func (w *wrapStream) Write(p []byte) (n int, err error) {
return
}
func (w *wrapStream) WriteIsThreadUnsafe() {
}
func (w *wrapStream) Upstream() any {
return w.Conn
}
func wrapError(err error) error {
switch err {
case yamux.ErrStreamClosed: