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

Method channel_close

crates/openshell-supervisor-process/src/ssh.rs:282–289  ·  view source on GitHub ↗

Clean up per-channel state when the channel is closed. This is the final cleanup and subsumes `channel_eof` — if `channel_close` fires without a preceding `channel_eof`, all resources (`pty_master` File, `input_sender`) are dropped here.

(
        &mut self,
        channel: ChannelId,
        _session: &mut Session,
    )

Source from the content-addressed store, hash-verified

280 /// fires without a preceding `channel_eof`, all resources (`pty_master` File,
281 /// `input_sender`) are dropped here.
282 async fn channel_close(
283 &mut self,
284 channel: ChannelId,
285 _session: &mut Session,
286 ) -> Result<(), Self::Error> {
287 self.channels.remove(&channel);
288 Ok(())
289 }
290
291 async fn channel_open_direct_tcpip(
292 &mut self,

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected