[erlang-questions] inet:setopts({packet, http}) for RTSP

Max Lapshin <>
Mon Nov 16 14:27:47 CET 2009


Yes, I have next problem with uncommon use of http packet mode.

As it is impossible to use {packet, http} for reading non-HTTP
request, I set {packet, line}, {active, once} to read first line of
request,
then I make {active, once}, {packet, httph_bin} to receive several
lines of real http headers.

When I get http_eoh, I switch to {packet, raw}, {active, once} and
next received message is http_error.
Trace dump shows me that message box is full of http_error messages:
{active, once} doesn't limit
http packetizer input and body gets into http parser.


More information about the erlang-questions mailing list