Description
This issue was originally filed by TerryMits...@gmail.com
What steps will reproduce the problem?
According to my test of the time_server.dart sample server program (included in Dart Editor) using Apache MINA proxi (http://mina.apache.org/report/trunk/xref/org/apache/mina/example/proxy/), following problems were found:
- Compare Dart HTTP server response header (lines 012 through 027) with Chrome’s request header (lines 001 through 011). So many TCP packets are used for the header portion.
- Within the body portion, single chunk is transferred using five TCP packets (lines 028 through 048).
- time_server.dart transmits identical HTTP responses against both ‘GET’ and ‘GET /favicon.ico’ requests from the browser. (This is a trivial bug.)
Here is a report from the proxy:
001 581395 [NioProcessor-5] INFO MINA_proxy.AbstractProxyIoHandler - GET / HTTP/1.1
002 Host: localhost:12345
003 Connection: keep-alive
004 Cache-Control: max-age=0
005 User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.162 Safari/535.19
006 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
007 Accept-Encoding: gzip,deflate,sdch
008 Accept-Language: ja,en-US;q=0.8,en;q=0.6
009 Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.3
010
011
012 581403 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - HTTP/1.1
013 581404 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - 200 OK
014 581404 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler -
015 content-type
016 581405 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - :
017 581405 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - text/html; charset=UTF-8
018
019 581405 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - transfer-encoding:
020 581406 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - chunked
021
022 581406 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - connection
023 581406 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - : keep-alive
024 581406 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler -
025
026 581406 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler -
027
028 581407 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - 15B
029 581407 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler -
030
031 581408 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - <html>
032 <style>
033 body { background-color: teal; }
034 p { ba
035 581408 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - ckground-color: white; border-radius: 8px; border:solid 1px #555; text-align: center; padding: 0.5em;
036 font-family: "Luc
037 581408 [NioProcessor-8] INFO MINA_proxy.AbstractProxyIoHandler - ida Grande", Tahoma; font-size: 18px; color: #555; }
038 </style>
039 <body>
040 <br/><br/>
041 <p>Current time: 2012-04-27 19:09:52.836</p>
042 </body>
043 </html>
044
045 0
046
047 …….
What is the expected output? What do you see instead?
Number of TCP packets should be minimized for the best transmission efficiency. This will help minimizing the response time.
What version of the product are you using? On what operating system?
Dart Editor Version 0.1.0.201204111510, Build 6442
Dart SDK version 6314, Dartium version
Windows Vista, 32bits
Please provide any additional information below.