BBS:      TELESC.NET.BR
Assunto:  src/ssh/audit-design.mdsrc/ssh/ssh-conn.c src/ssh/test/test_selftest.c
De:       Deuc¨
Data:     Mon, 30 Mar 2026 10:39:12 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/ec9f4a004426b9a377828090
Added Files:
	src/ssh/audit-design.md
Modified Files:
	src/ssh/ssh-conn.c src/ssh/test/test_selftest.c
Log Message:
Fix audit items 1-3: initial_window=0, WINDOW_ADJUST, buffer timing

- open_session_channel sends initial_window=0 (was INITIAL_WINDOW_SIZE)
- accept_channel_init sends initial_window=0 in CONFIRMATION
- Split init_session_channel into init_channel_sync (phase 1: sync
  primitives only) and init_channel_buffers (phase 2: ring buffers)
- dssh_chan_open: allocates buffers AFTER terminal request succeeds,
  then sends WINDOW_ADJUST to open the data window
- dssh_chan_zc_open: no ring buffers (ZC mode), sends WINDOW_ADJUST
- dssh_chan_accept: sends WINDOW_ADJUST after setup loop completes
- Tests updated: server threads poll for DSSH_POLL_WRITE before first
  write (WINDOW_ADJUST may not have been processed yet)

Added audit-design.md with full conformance audit (12 items).

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

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