[erlang-bugs] gen_tcp/new_ssl http packet inconsistency when reading malformed header
Jonas Boberg
jonas.boberg@REDACTED
Wed Jun 23 11:14:11 CEST 2010
Ingela Anderton Andin wrote:
> Maybe I spoke to early. I according to the documentation:
> "A socket in passive mode will return {ok, HttpPacket} from gen_tcp:recv"
> ...
> So ssl does acctualy return what the documentation says it should.
Yes, actually dialyzer even gives a warning for this code in R13B04:
case gen_tcp:recv(Socket, 0, 1000) of
%% dialyzer gives a warning for the following line, but its "correct" in R13B
{error, {http_error, _Str}} ->
...
end
If it's not possible to change the gen_tcp behaviour, I guess the documentation
and type specs should be updated.
/Jonas
---------------------------------------------------
---------------------------------------------------
WE'VE CHANGED NAMES!
Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.
www.erlang-solutions.com
More information about the erlang-bugs
mailing list