mirror of
https://github.com/Noratrieb/cluelessh.git
synced 2026-03-15 03:26:03 +01:00
improvements
This commit is contained in:
parent
bfcf1120e1
commit
46f73c2de4
4 changed files with 15 additions and 9 deletions
|
|
@ -170,7 +170,11 @@ async fn handle_connection(
|
|||
// arbitrary limit
|
||||
if total_sent_data.len() < 500_000 {
|
||||
total_sent_data.extend_from_slice(&data);
|
||||
}
|
||||
} else {
|
||||
info!(channel = %update.number, "Reached stdin limit");
|
||||
state.do_operation(update.number.construct_op(ChannelOperationKind::Data(b"Thanks Hayley!".to_vec())));
|
||||
state.do_operation(update.number.construct_op(ChannelOperationKind::Close));
|
||||
}
|
||||
|
||||
if is_eof {
|
||||
debug!(channel = %update.number, "Received EOF, closing channel");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue