[erlang-questions] tcp active mode connection with http packet sometimes gives tcp packets?

Marc Sugiyama marcsugiyama@REDACTED
Sat Oct 18 00:34:33 CEST 2008

We are using a locally modified mochiweb that uses active mode (active,
true).  Mochiweb uses the http packet mode.

Occasionally, the server is getting a "tcp" packet instead of an "http"
packet.  The tcp packet contains the request line and headers.  One problem,
which we already fixed, is that we were setting active mode true and http
packet mode in two different places of the code.  Moving the two together
(either in the socket options for the listener socket, or after the socket
is accepted) reduced the frequency of the problem, but we're still seeing
"tcp" packets on occasion.

This occurs in both R12B3 and R12B4 on MacOSX and Linux.

Has anyone else seen a problem like this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081017/468e3a4d/attachment.htm>

More information about the erlang-questions mailing list