Commit graph

8 commits

Author SHA1 Message Date
root
fc1cc26b0f rewrite client__pollout
algorithm:
1. call client__pollout__before_fresh_lines
2. if error, return
3. find line length
4. if no line, set POLLIN and goto 8
5. call client__pollout__line
6. if error, goto 7
7. finished with this line; goto 3
8. move the final incomplete line to the start of the client's buffer
9. return
2025-05-21 09:32:25 +00:00
root
44cf92c998 fix: read(2)ing too many bytes 2025-05-17 09:07:03 +00:00
root
c90622c564 fix: client__pollout always returning error, not handling error 2025-05-17 08:46:26 +00:00
root
76b53ad30c fix: negative line length, write(2) to bad fd 2025-05-17 08:37:23 +00:00
root
65dc844f54 typo: writing buffer_len to somewhere undefined 2025-05-17 08:27:15 +00:00
root
05f614b224 typo: writing POLLOUT beyond pollfds array bounds 2025-05-17 08:20:30 +00:00
root
484d81baa8 client__pollin: read as much as possible; client__pollout: do processing 2025-05-17 08:10:55 +00:00
root
29f54ba779 echo server, multiple clients, lines <256 bytes 2025-05-13 12:07:03 +00:00