| Author |
Message |
|
| Guest |
Posted: Tue Nov 02, 2010 3:11 pm |
|
|
|
Guest
|
We get a crash in ssl_connection when trying to receive an http packet:
Here are some traces:
call ssl_connection:format_reply({socket_options,list,http,0,0,false},{http_request,'GET',{abs_path,"/"},{1,1}})
(<0.659.0>) call ssl_connection:format_reply(list,0,{http_request,'GET',{abs_path,"/"},{1,1}})
(<0.659.0>) exception_from {ssl_connection,format_reply,3} {error,badarg}
(<0.659.0>) exception_from {ssl_connection,format_reply,2} {error,badarg}
*failed*
::exit:{econnrefused,[{lhttpc_client,send_request,1},
{lhttpc_client,execute,9},
{lhttpc_client,request,9}]}
in function lhttpc:request/9
in call from tl_async:'-call/3-fun-0-'/3
(<0.659.0>) call ssl_connection:terminate({badarg,[{erlang,binary_to_list,[{http_request,'GET',{abs_path,"/"},{1,1}}]},
{ssl_connection,format_reply,3},
{ssl_connection,format_reply,2},
{ssl_connection,deliver_app_data,4},
{ssl_connection,application_data,2},
{ssl_connection,handle_event,3},
Relevant Code:
in ssl_connection.erl
format_reply(list, _, Data) -> binary_to_list(Data);
format_reply(binary, 0, Data) -> Data;
format_reply(binary, raw, Data) -> Data;
format_reply(binary, N, Data) -> % Header mode
<<Header:N/binary, Rest/binary>> = Data,
[binary_to_list(Header), Rest].
Is this already fixed in R14, and/or can we get a patch for R13B04 ?
Thanks
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Tue Nov 02, 2010 4:36 pm |
|
|
|
Guest
|
Hi!
This is fixed in R14B.
Regards Ingela Erlang/OTP -team Ericsson AB
Henrik Nord wrote:
> We get a crash in ssl_connection when trying to receive an http packet:
>
> Here are some traces:
>
> call ssl_connection:format_reply({socket_options,list,http,0,0,false},{http_request,'GET',{abs_path,"/"},{1,1}})
> (<0.659.0>) call ssl_connection:format_reply(list,0,{http_request,'GET',{abs_path,"/"},{1,1}})
> (<0.659.0>) exception_from {ssl_connection,format_reply,3} {error,badarg}
> (<0.659.0>) exception_from {ssl_connection,format_reply,2} {error,badarg}
> *failed*
> ::exit:{econnrefused,[{lhttpc_client,send_request,1},
> {lhttpc_client,execute,9},
> {lhttpc_client,request,9}]}
> in function lhttpc:request/9
> in call from tl_async:'-call/3-fun-0-'/3
>
>
> (<0.659.0>) call ssl_connection:terminate({badarg,[{erlang,binary_to_list,[{http_request,'GET',{abs_path,"/"},{1,1}}]},
> {ssl_connection,format_reply,3},
> {ssl_connection,format_reply,2},
> {ssl_connection,deliver_app_data,4},
> {ssl_connection,application_data,2},
> {ssl_connection,handle_event,3},
>
>
> Relevant Code:
> in ssl_connection.erl
> format_reply(list, _, Data) -> binary_to_list(Data);
> format_reply(binary, 0, Data) -> Data;
> format_reply(binary, raw, Data) -> Data;
> format_reply(binary, N, Data) -> % Header mode
> <<Header:N/binary, Rest/binary>> = Data,
> [binary_to_list(Header), Rest].
>
>
> Is this already fixed in R14, and/or can we get a patch for R13B04 ?
>
> Thanks
>
________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|