chaos-mesh / chaos-tproxy

33 stars 15 forks source link

docs: docs for UDS data client/server #57

Closed STRRL closed 2 weeks ago

STRRL commented 2 years ago

Signed-off-by: STRRL im@strrl.dev

append some docs for UDS part

STRRL commented 2 years ago

But I am still curious that, I see there is nowhere to close the uds connection / UnixStream, does tokio/mio would close it automatically? But I also find that there is no where to implemented the Drop trait for these structs.

Andrewmatilde commented 2 years ago

But I am still curious that, I see there is nowhere to close the uds connection / UnixStream, does tokio/mio would close it automatically? But I also find that there is no where to implemented the Drop trait for these structs.

Mio will close it automatically.

STRRL commented 2 years ago

But I am still curious that, I see there is nowhere to close the uds connection / UnixStream, does tokio/mio would close it automatically? But I also find that there is no where to implemented the Drop trait for these structs.

Mio will close it automatically.

Any reference? ❤️

Andrewmatilde commented 2 years ago

Any reference? ❤️

Everything base on unix fd all drop here. It is really hard to trace.

https://stdrs.dev/nightly/x86_64-unknown-linux-gnu/src/std/os/fd/owned.rs.html#167