wolfssh/examples/echoserver
John Safranek 7325678553 echoserver: keep the EOF reply owed across a rekey
wolfSSH_ChannelIdRead() has no rekey guard, so a drained channel still
reports zero mid-rekey and the drain loop calls the reply in. That send
returns WS_REKEYING before it prepares a packet, so nothing is queued.

- take the send's status instead of discarding it
- latch eofAnswered and ChildRunning on every status but WS_REKEYING, so
  the reply is retried on a later pass; the KEX traffic wakes it
- a short send is left latching: it bundled the EOF and set eofTxd, so a
  retry queues nothing and the loop would stall in an untimed select
  waiting on a peer that has already half-closed
- same change in the Espressif copy
2026-08-31 11:53:29 -05:00
..
echoserver.c echoserver: keep the EOF reply owed across a rekey 2026-08-31 11:53:29 -05:00
echoserver.h Fix a one byte heap overflow in LoadTpmSshKey 2026-08-13 11:59:57 -07:00
include.am Simplify Test Build Flags 2025-07-17 15:30:24 -07:00