WIP: Implement server-side SET_BUFFER; make buffering actually work.