diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 17:16:41 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-28 17:16:41 -0300 |
| commit | 2a7137c644eb955d39ce3f07d75bf9c8fd9c932e (patch) | |
| tree | e51b2a41414d90fe1b0d07b6ba15cb3a9477c359 /9agents/src/main.zig | |
| parent | a8c7a7158cc9d3bde78e34db6de11c084fde3d65 (diff) | |
| download | cloud9-2a7137c644eb955d39ce3f07d75bf9c8fd9c932e.tar.gz cloud9-2a7137c644eb955d39ce3f07d75bf9c8fd9c932e.zip | |
9ns: a failed send leaves the replies already in the socket to be read
A server that answers and then hangs up (pardes answering a Restore, then
cutting every connection) could lose that answer: if another call's send
found the socket closed first, die() failed every waiter at once, the one
whose reply sat unread in the socket included. Now a failed send fails
only its own call and stops further sends; the reader goes on to EOF (or
for at most a second) and the session dies then. A test has the fake
server answer a write and hang up before the reply is read.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to '9agents/src/main.zig')
0 files changed, 0 insertions, 0 deletions
