[erlang-bugs] http-client fails when gets response w/o headers

Igor Goryachev goryachev@REDACTED
Thu Aug 16 14:38:14 CEST 2007


Hello.

It seems there is yet another bug found in http-client while it gets
response from http-server with omitted headers (?):

23> http:request("http://shingler:7070/check?aaa=bbb").
{error,session_remotly_closed}
24> 
=ERROR REPORT==== 16-Aug-2007::16:15:56 ===
** Generic server <0.871.0> terminating 
** Last message in was {tcp_closed,#Port<0.696>}
** When Server state == {state,{request,
                                   #Ref<0.0.0.16664>,
                                   <0.31.0>,
                                   0,
                                   http,
                                   {"shingler",7070},
                                   "/check",
                                   "?aaa=bbb",
                                   get,
                                   {http_request_h,
                                       undefined,
                                       "keep-alive",
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       "shingler",
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       [],
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       "0",
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       undefined,
                                       []},
                                   {[],[]},
                                   {http_options,
                                       infinity,
                                       true,
                                       [],
                                       undefined,
                                       false},
                                   "http://shingler:7070/check?aaa=bbb",
                                   [],
                                   none,
                                   []},
                               {tcp_session,
                                   {{"shingler",7070},<0.871.0>},
                                   false,
                                   http,
                                   #Port<0.696>,
                                   1},
                               undefined,
                               undefined,
                               undefined,
                               {httpc_response,
                                   parse_reason_phrase,
                                   [<<>>,
                                    "TSET\n\nKO",
                                    nolimit,
                                    [200,"HTTP/1.1"]]},
                               {[],[]},
                               new,
                               [],
                               nolimit,
                               nolimit,
                               {options,
                                   {undefined,[]},
                                   0,
                                   2,
                                   2,
                                   disabled,
                                   enabled,
                                   false},
                               {timers,[],undefined}}
** Reason for termination == 
** session_remotly_closed



-- 
Igor Goryachev
Yandex development team.



More information about the erlang-bugs mailing list