[erlang-questions] Are you using {packet, http} ?

Valentin Micic valentin@REDACTED
Mon Jul 14 20:33:37 CEST 2008


I'm so glad taht I haven't been aware of this before. So glad that I am now 
;-).

V.

PS
Hope that {active, once} will be supported as per usual.


----- Original Message ----- 
From: "Sverker Eriksson" <sverker@REDACTED>
To: "erlang-questions" <erlang-questions@REDACTED>
Sent: Monday, July 14, 2008 4:20 PM
Subject: [erlang-questions] Are you using {packet, http} ?


>A message from the OTP team:
>
> There is an undocumented socket packet mode that provides HTTP parsing.
> We are planning to make this packet mode official and possibly also
> change the format of the tuples returned in this mode. One current big
> user is the web server Yaws. We would like to know of other applications
> using this HTTP mode and what kind of impact such an incompatible change
> would have.
>
> A socket using {packet, http} returns tuples like this in *passive* mode:
>
> {ok, {http_request, ...}}
> {ok, {http_response, ...}}
> {ok, {http_header, ...}}
>
>
> and tuples like this in *active* mode:
>
> {http_request, Socket, ...}
> {http_response, Socket, ...}
> {http_header, Socket, ...}
>
>
> The proposed change would only affect the active mode like this:
>
> {http, Socket, {http_request, ...}}
> {http, Socket, {http_response, ...}}
> {http, Socket, {http_header, ...}}
>
>
> The purpose is to make the inner tuples look the same regardless of how
> they were received. This would simplify both the implementation and the
> documentation as well as any applications using both receive modes.
> Applications only using http in passive mode (like Yaws) will not be
> affected.
>
> Am I stirring up any worried http-users out there?
>
> /Sverker, Erlang/OTP Ericsson
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions 




More information about the erlang-questions mailing list