sockproc
sockproc copied to clipboard
chunking
Have you considered reinventing the sockproc protocol to serve data in chunks? Say for example for generating an archive dynamically, seems to me you need to allocate the size of the output, then write everything to the socket?
That is a good idea. You could redirect archive generation into a file, and then read from there directly, not via sockproc. However, i agree that it would be nice to have support for chunking in the protocol. Perhaps, it would be v1.1, for example, similar to how chunking works in http.