(
&mut self,
channel: ChannelId,
_session: &mut Session,
)
| 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 | |
| 540 | impl SshHandler { |
nothing calls this directly
no outgoing calls
no test coverage detected