about summary refs log tree commit diff stats
path: root/src/io/bufstream.nim
Commit message (Collapse)AuthorAgeFilesLines
* buffer: fix multipart formsbptato2024-05-111-0/+4
| | | | | | | | | * fix enctype not getting picked up * fix form data constructor requiring open() syscall (which gets blocked by our seccomp filter) * add closing boundary to multipart end * pass fds instead of path names through WebFile/Blob and send those through bufwriter/bufreader
* Update code stylebptato2024-04-171-8/+4
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* io: derive DynStream from RootObj (not Stream)bptato2024-03-241-2/+1
| | | | | | | | This way they are no longer compatible, but we no longer need them to be compatible anyway. (This also forces us to throw out the old serialize module, and use packet writers everywhere.)
* io: add dynstreambptato2024-03-121-2/+2
| | | | | a new abstraction that we derive posixstream from; hopefully with time we can get rid of std/streams
* buffer, client: fix deadlock with send() callsbptato2024-02-291-0/+54
This is an ancient bug, but it got much easier to trigger with mouse scrolling support so it's time to fix it. (The bug itself was that since both the client and buffer ends of the controlling stream are blocking, they could get stuck when both were trying to send() data to the other end but the buffer was full. So now we set the client end to non-blocking.)