You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tokio duplex (or monoio-duplex) uses Arc or Rc when being split, the read half and write half are the same SimplexStream structure, dropping one side does nothing to the SimpleStream structure, and reading/writing through the Rc/Arc wrapper won't check its reference count.
Upstream tokio issue: tokio-rs/tokio#6914
Root cause
Tokio duplex (or
monoio-duplex
) usesArc
orRc
when being split, the read half and write half are the sameSimplexStream
structure, dropping one side does nothing to theSimpleStream
structure, and reading/writing through theRc/Arc
wrapper won't check its reference count.Code snippet
The text was updated successfully, but these errors were encountered: