<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This seems a Bug in inets. Refer with
httpc_handler:retry_pipline/3 and http_util:key1search/3.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Find the attached log part with error
details.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Quick Patch:
httpc_handler:retry_pipline/3</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>785c 787<BR><
Timer = {_, TimerRef}
=<BR>
http_util:key1search(RequestTimers,
Request#request.id, <BR>
{undefined,
undefined}),<BR>---<BR>>
case
lists:keysearch(Request#request.id, 1, RequestTimers)
of<BR> {value,
Timer}
-><BR>
{_, TimerRef} =
Timer;<BR>
_ -><BR>
Timer = {_,
TimerRef} = {undefined,
undefined}<BR> end,</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Test Details: </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1> RequestTimers =
[{make_ref(),make_ref()},{make_ref(),make_ref()}].<BR>[{#Ref<0.0.0.31>,#Ref<0.0.0.32>},{#Ref<0.0.0.33>,#Ref<0.0.0.34>}]<BR>2>
[{_,_},{RequestID,_}] =
RequestTimers.<BR>[{#Ref<0.0.0.31>,#Ref<0.0.0.32>},{#Ref<0.0.0.33>,#Ref<0.0.0.34>}]<BR>3>
RequestID.<BR>#Ref<0.0.0.33><BR>4> Timer = {_, TimerRef}
=http_util:key1search(RequestTimers, RequestID,{undefined,
undefined}).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>=ERROR REPORT==== 9-Jul-2007::21:56:09 ===<BR>Error
in process <0.29.0> with exit value:
{{badmatch,#Ref<0.0.0.34>},[{erl_eval,expr,3}]}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>** exited:
{{badmatch,#Ref<0.0.0.34>},[{erl_eval,expr,3}]} **<BR>5> <BR>5>
http_util:key1search(RequestTimers, RequestID,{undefined,
undefined}).
<BR>#Ref<0.0.0.34><BR>6> </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=sanjaya@wavenet.lk href="mailto:sanjaya@wavenet.lk">Sanjaya
Vitharana</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=erlang-questions@erlang.org
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, 04 July 2007 12:12
pm</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [erlang-questions] inets http
--- httpc_handler, retry_pipline</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyone has a idea about below error &
why it gets with</FONT></DIV>
<DIV><FONT face=Arial size=2>http:request(get, {URL, []}, [{timeout,
?REQUEST_TIMEOUT},{autoredirect, true}], [{sync, false}]) ???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have get it with R11B-4 (emulator
version 5.5.4 - inets-4.7.11). Is this a bug in in inets ??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>** Reason for termination == <BR>**
{{badmatch,#Ref<0.0.43.103898>},<BR>
[{httpc_handler,retry_pipline,2},<BR>
{httpc_handler,terminate,2},<BR>
{gen_server,terminate,6},<BR>
{proc_lib,init_p,5}]}</DIV>
<DIV> </DIV>
<DIV>=CRASH REPORT==== 4-Jul-2007::10:16:10 ===<BR>
crasher:<BR> pid: <0.25066.9><BR>
registered_name: []<BR> error_info:
{{badmatch,#Ref<0.0.43.103898>},<BR>
[{httpc_handler,retry_pipline,2},<BR>
{httpc_handler,terminate,2},<BR>
{gen_server,terminate,6},<BR>
{proc_lib,init_p,5}]}<BR> initial_call:
{gen,<BR>
init_it,<BR>
[gen_server,<BR>
<0.54.0>,<BR>
<0.54.0>,<BR>
httpc_handler,<BR>
[{request,<BR>
#Ref<0.0.43.103750>,<BR>
<0.63.0>,<BR>
0,<BR>
http,<BR>
{"scrb.int",80},<BR>
"/vmail/vmStart.php",<BR>
"?key=c&session=a1183524542772308306&ch=56&serverid=3",<BR>
get,<BR>
{http_request_h,<BR>
undefined,<BR>
"keep-alive",<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
"scrb.int",<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
[],<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
"0",<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
undefined,<BR>
[]},<BR>
{[],[]},<BR>
{http_options,18000,true,[],undefined,false},<BR>
"<A
href="http://scrb.int/vmail/vmStart.php?key=c&session=a1183524542772308306&ch=56&serverid=3">http://scrb.int/vmail/vmStart.php?key=c&session=a1183524542772308306&ch=56&serverid=3</A>",<BR>
[],<BR>
none,<BR>
[]},<BR>
{options,{undefined,[]},0,2,2,disabled,enabled,false}],<BR>
[]]}<BR> ancestors:
[httpc_manager,httpc_sup,inets_sup,<0.50.0>]<BR>
messages: []<BR> links:
[<0.54.0>,#Port<0.390595>]<BR> dictionary:
[]<BR> trap_exit: true<BR> status:
running<BR> heap_size: 4181<BR>
stack_size: 21<BR> reductions: 12757<BR>
neighbours:</DIV></FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>erlang-questions
mailing
list<BR>erlang-questions@erlang.org<BR>http://www.erlang.org/mailman/listinfo/erlang-questions</BLOCKQUOTE></BODY></HTML>