gen_tcp/new_ssl http packet inconsistency when reading malformed header
Jonas Boberg
jonas.boberg@REDACTED
Mon Jun 21 16:43:30 CEST 2010
The new_ssl and gen_tcp sockets does not return
http packet decode errors in the same way.
How to repeat:
1. Run a ssl(new_ssl)/gen_tcp server with the http packet option set
2. Send a http request with a malformed header field to the server
new_ssl/gen_tcp will return different values when
reading the header:
ssl:recv(SSLSocket, 0) -> {ok, {http_error, _Str}}
gen_tcp:recv(Socket, 0) -> {error, {http_error, _Str}}
Erlang version: R13B04 (no fix mentioned in in the release notes of R14A).
/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