MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / channel_eof

Method channel_eof

crates/openshell-supervisor-process/src/ssh.rs:522–537  ·  view source on GitHub ↗
(
        &mut self,
        channel: ChannelId,
        _session: &mut Session,
    )

Source from the content-addressed store, hash-verified

520 }
521
522 async fn channel_eof(
523 &mut self,
524 channel: ChannelId,
525 _session: &mut Session,
526 ) -> Result<(), Self::Error> {
527 // Drop the input sender so the stdin writer thread sees a
528 // disconnected channel and closes the child's stdin pipe. This
529 // is essential for commands like `cat | tar xf -` which need
530 // stdin EOF to know the input stream is complete.
531 if let Some(state) = self.channels.get_mut(&channel) {
532 state.input_sender.take();
533 } else {
534 warn!("channel_eof on unknown channel {channel:?}");
535 }
536 Ok(())
537 }
538}
539
540impl SshHandler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected