[erlang-questions] gen_tcp and large HTTP headers

Max Lapshin max.lapshin@REDACTED
Fri Jun 24 04:24:30 CEST 2011

On Fri, Jun 24, 2011 at 12:10 AM, Robert Virding
<robert.virding@REDACTED> wrote:
> Wouldn't it be better to rewrite the packet parser to work in a re-entrant fashion so as to be able to span over many packets? It would save a lot of fiddling with the recbuf size.

You always have to keep buffer: either in receiver, either in parser.

Easier to use when parser is stateless, but it requires more work when
you parse again and again old data on receiving new.

More information about the erlang-questions mailing list