BBS:      TELESC.NET.BR
Assunto:  src/ssh/CLAUDE.mdsrc/ssh/test/test_conn.c test_selftest.c
De:       Deuc¨
Data:     Sun, 22 Mar 2026 16:25:00 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/7cd39d3e2642c18627ccf8a2
Added Files:
	src/ssh/CLAUDE.md
Modified Files:
	src/ssh/test/test_conn.c test_selftest.c
Log Message:
DeuceSSH: CLAUDE.md, connection drop tests (376 total)

Add CLAUDE.md with project overview, build/test instructions,
architecture summary, RFC conformance notes, and design decisions.

Four new tests for unexpected connection drop (socket death
mid-session without SSH_MSG_DISCONNECT):

- test_connection_drop_during_read: reader blocked on poll,
  pipes closed, session terminates, reader unblocks cleanly
- test_connection_drop_during_write: write returns error after
  drop (not hang), poll returns (not hang)
- test_cleanup_after_drop: dssh_session_cleanup called directly
  after pipe close without explicit terminate  must not hang
- test_self_connection_drop: real socketpair with working echo
  channel, shutdown(SHUT_RDWR) both sockets, both sessions
  terminate, server thread exits, cleanup succeeds

Co-Authored-By: Claude Opus 4.6 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]