<!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>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have done another test, check the code and 
results. If Asynchronous request hangs it causes to crash the server when 2nd 
request receives.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya Vitharana.</FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=sanjaya@wavenet.lk href="mailto:sanjaya@wavenet.lk">Sanjaya Vitharana</A> 
</DIV>
<DIV><B>To:</B> <A title=erlang-questions@erlang.org 
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A> </DIV>
<DIV><B>Sent:</B> Tuesday, 29 May 2007 10:33 am</DIV>
<DIV><B>Subject:</B> inets - http:request with invalid host ip</DIV></DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Of cource I put an ip which is not visible (and url 
also not there). </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2> test:test_url().<BR> URL="<A 
href="http://202.124.160.149/src/cf/1414/cricket/scoreline_odi/menu.php?key=1&session=a02857230011801002496201&ch=58&serverid=1">http://202.124.160.149/src/cf/1414/cricket/scoreline_odi/menu.php?key=1&session=a02857230011801002496201&ch=58&serverid=1</A>"<BR> Time 
for Synchronous request 189028171 microseconds 
ResSync={error,etimedout}<BR> Time for Asynchronous request 188972235 
microseconds 
ResASync={ok,<BR>                                                                
#Ref<0.0.0.119>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>Check the above 
results for time taken to execute http:request. (test code 
attached)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1.) It has taken a large amount of time to execute 
both requests</FONT></DIV>
<DIV><FONT face=Arial size=2>2.) And time difference to exit 
from Synchronous and Asynchronous request are approximately 
same.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this OK ???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>What I am thinking is the time taken 
to perform Asynchronous request as not acceptable. Am I wrong 
?</FONT></DIV>
<DIV><FONT face=Arial size=2>If the IP is not visible (or not 
available) Why such long time taken to give ANY result ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this a bug ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</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>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[root@es3 root]# uname -a<BR>Linux es3 
2.4.21-27.0.1.EL #1 Fri Dec 24 13:49:49 EST 2004 i686 i686 i386 
GNU/Linux<BR>[root@es3 root]# <BR>[root@es3 root]# erl -version<BR>Erlang 
(ASYNC_THREADS,HIPE) (BEAM) emulator version 5.5.4<BR>[root@es3 
root]#</FONT></DIV></BODY></HTML>