Boburmirzo
Boburmirzo
i know it introduces unnecessary complexity, but hey it is just for fun.
some inconsistencies were fixed making the code more robust and clean
Proposed change: replace the current `log` usage with structured logging (e.g. leveled fields, consistent context, machine-readable output). This would improve observability and debugging without changing runtime behavior. Before starting work,...
tunnel.Bind() no longer closes connections because any function that's using it already has deferred functions that close connections. With this approach, tunnel.Bind()'s sole responsibility is to copy data from src...
file: cli/jprqc.go So basically handleEvent in the CLI code defers closing both localCon and remoteCon at the function level, but tunnel.Bind() already closes them internally via its own defers. So...
https://github.com/HDT3213/godis/blob/master/tcp/server.go ListenAndServeWithSignal() There's a risk of missing signals from the os when channels aren't buffered.
signal.Notify() requires a buffered channel for signals. Explicitly stated in the documentation ``` Package signal will not block sending to c: the caller must ensure that c has sufficient buffer...