Loading
Commits on Source 4
-
krant authored
The `socket_close_wrapper` was manually closing the file descriptor behind Rust's back. In Rust 1.80+, this triggers the following crash when the socket object naturally drops and tries to close it a second time: > **`fatal runtime error: IO Safety violation: owned file descriptor already closed, aborting`** This patch removes the manual cleanup wrapper and refactors the code to call `recv_and_process` directly. This allows Rust's standard `Drop` semantics to safely close the socket exactly once when it goes out of scope.
-
Simon THOBY authored
-
Simon THOBY authored
-
Simon THOBY authored