chaos-tproxy icon indicating copy to clipboard operation
chaos-tproxy copied to clipboard

docs: docs for UDS data client/server

Open STRRL opened this issue 2 years ago • 4 comments

Signed-off-by: STRRL [email protected]

append some docs for UDS part

STRRL avatar Oct 13 '22 12:10 STRRL

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.

STRRL avatar Oct 13 '22 12:10 STRRL

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.

Andrewmatilde avatar Oct 13 '22 12:10 Andrewmatilde

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? ❤️

STRRL avatar Oct 13 '22 12:10 STRRL

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

Andrewmatilde avatar Oct 13 '22 13:10 Andrewmatilde