No, you have to process at most three bytes, four if you include the opcode. See sample code. --Richard
On Sep 6, 2011, at 10:47 AM, Willy Tarreau wrote: > On Tue, Sep 06, 2011 at 10:43:38AM -0400, Richard L. Barnes wrote: >> Clearly it already has to be WebSocket aware, and it already has to read the >> opcode in order to distinguish data frames from control frames. Adding on a >> requirement to break at code point boundaries does not seem hugely onerous. >> It's three lines of C: > > Yes it is : you have to process all the bytes. You can't use splicing > to forward XXX bytes between one socket and another, for instance, > which precisely is what a number of intermediaries will do. > > Regards, > Willy > _______________________________________________ Gen-art mailing list [email protected] https://www.ietf.org/mailman/listinfo/gen-art
