mirror of
https://github.com/openai/codex.git
synced 2026-09-20 12:47:38 +00:00
Merge e00d977a1f into sapling-pr-archive-bolinfest
This commit is contained in:
@@ -236,7 +236,21 @@ pub(crate) fn send_json_message<T: Serialize>(
|
||||
fds: &[OwnedFd],
|
||||
) -> std::io::Result<()> {
|
||||
let data = serde_json::to_vec(&msg)?;
|
||||
send_message_bytes(socket, &data, fds)
|
||||
tracing::error!(
|
||||
"sending message with {} fds and a data payload of {} bytes",
|
||||
fds.len(),
|
||||
data.len()
|
||||
);
|
||||
|
||||
send_message_bytes(socket, &data, fds)?;
|
||||
|
||||
tracing::error!(
|
||||
"finished sending message with {} fds and a data payload of {} bytes",
|
||||
fds.len(),
|
||||
data.len()
|
||||
);
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn send_datagram_bytes(socket: &Socket, data: &[u8], fds: &[OwnedFd]) -> std::io::Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user