wolfssh/examples/scpclient
John Safranek 7320687a1e examples, apps: drain at shutdown everywhere
The remaining teardown sites spun wolfSSH_worker() ten times after
wolfSSH_shutdown(), the loop the client and the echoserver just
replaced. The clients now send a disconnect and drain, and wolfsshd
half closes and drains like the echoserver.

- sftpclient.c, scpclient.c, portfwd.c and the wolfssh app call
  SendDisconnectAndDrain() and treat either give-up as a clean close.
- scpclient.c and the wolfssh app report an unexpected shutdown result,
  as the client does.
- the wolfssh app waits for the channel close before draining, as the
  client does, and fails on an error that broke the wait.
- wolfsshd drained by hand after wolfSSH_free(), with no bound on a peer
  that never hung up. HalfCloseAndDrain() bounds it at ten seconds, and
  a peer that let the login grace time run out is not drained.
2026-10-13 10:45:39 -05:00
..
include.am refactor client apps and add X509 to scpclient 2023-04-04 14:59:46 -07:00
scpclient.c examples, apps: drain at shutdown everywhere 2026-10-13 10:45:39 -05:00
scpclient.h Add parameter names to function declarations 2026-06-09 17:03:02 -07:00