Commit Briefs

Omar Polo

allow Tread to fill a message

a message of `msize' len is valid, we just need to make sure to _not_ overflow it.


Omar Polo

allow jumbo Twrites for real


Omar Polo

typo


Omar Polo

sync changelog


Omar Polo

fail on "jumbo" requests (except for Twrite)

except for Twrite, all other requests are passed via a single imsg. We don't handle "jumbo" request for anything outside Twrite, nor it does make sense actually, so let's drop it. (well, for Twstat an argument can be made, maybe)



Omar Polo

allow Twrite with size bigger than ~16K

Until now I've been using a single imsg to handle each messages and the imsg framework has a limit of around 16K for message. For almost all requests, this is fine. Except for Twrite and Tread. This is an attempt to make Twrite handle bigger buffers. The listener process just looks at how big a request is and split it up in multiple messages and the client process tries to remember the fid, position and missing data to continue the write. This means that a single Twrite can be split up in multiple write(2)s.


Omar Polo

sync changelog



Omar Polo

move INFTIM shim to compat.h


Omar Polo

ninepscript: refactor builtin_recv

builtin_recv receives imsg from the client process (it's invoked as `recv' from the scripts) and its interaction with the other process is delicate. Instead of the current mess, try to do a more idiomatic imsg_read/get loop, with a flag to read more messages.


Omar Polo

remove useless ret=0


Omar Polo

constify pp_val and ppf_val


Omar Polo

new upload server


Omar Polo

constify v_{true,false} and pushv