<div dir="ltr"> I've been using the "Simple tests" introdued by polygraph's User manual to test my squid server. During testing, I found my squid can't pull the resource from orign(that is polygraph-server) successfully. <div>
<br></div><div> The environment used in tests is as follows:<br></div><div><div>1¡¢Two testing maches: one used for squid server with ip addr 218.202.111.5 and another used for polygraph-server and polygraph-client with ip addr 218.202.111.138.And my squid listens on the 8101 port. </div>
<div>2¡¢The config file used by polygraph is as following:</div><div>-------------------------------------------------------------------------------------------------------</div><div><div>Content SimpleContent = {</div><div>
size = exp(13KB); // response sizes distributed exponentially</div><div> cachable = 80%; // 20% of content is uncachable</div><div>};</div></div><div><div>Server S = {</div><div> kind = "S101";</div>
<div> contents = [ SimpleContent ];</div><div> direct_access = contents;</div><div><br></div><div> addresses = ['218.202.111.138:80']; // where to create these server agents</div><div>};</div>
</div><div><div>// a primitive robot</div><div>Robot R = {</div><div> kind = "R101";</div><div> pop_model = { pop_distr = popUnif(); };</div><div> recurrence = 55% / SimpleContent.cachable; // adjusted to get 55% DHR</div>
<div><br></div><div> req_rate = 1/sec;</div><div> origins = S.addresses; // where the origin servers are</div><div> addresses = ['218.202.111.138' ** 10]; // where these robot agents will be created</div>
<div>};</div><div>// commit to using these servers and robots</div><div>use(S, R);</div></div><div>3¡¢The command i used for starting polygraph-server and polygraph-client is ,</div></div><div><div>/usr/local/polygraph/bin/polygraph-client --config ./<a href="http://my_simple.pg">my_simple.pg</a> --verb_lvl 10</div>
<div>/usr/local/polygraph/bin/polygraph-client --config ../workdir/<a href="http://my_simple.pg">my_simple.pg</a> --verb_lvl 10 --proxy <a href="http://218.202.111.5:8101">218.202.111.5:8101</a><br></div></div><div><br></div>
<div> During test, i found squid have got requests from ploygraph-client,but using a wrong url to pull resource (that is polygraph-server).Part of my squid access log is showed as below:<br>--------------------------------------------------------------------------------------------------------------</div>
<div><div>218.202.111.138 - - [10/Mar/2014:15:58:49 +0800] "GET <a href="http://w1cbc2601.7f1c694f:8/t03/_00000003">http://w1cbc2601.7f1c694f:8/t03/_00000003</a> HTTP/1.1" 503 1513 "-" "-" TCP_MISS DIRECT 0 -</div>
<div>218.202.111.138 - - [10/Mar/2014:15:58:50 +0800] "GET <a href="http://w1cbc2601.7f1c694f:8/t03/_00000004">http://w1cbc2601.7f1c694f:8/t03/_00000004</a> HTTP/1.1" 503 1513 "-" "-" TCP_MISS DIRECT 0 -</div>
<div> </div></div><div> I snapped http-request packets from polygraph-client, and found request-line of http-request is not what squid expected,which caused the squid can't pull resource from polyserver.The request-line in http-request sent by polyclient is like that :</div>
<div>"GET <a href="http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00000001">http://218.202.111.138/w1cbc0feb.0fea1bae:00000008/t03/_00000001</a> HTTP/1.1"<br></div><div>The right request-line which the squid expected ,i think, shoud be like:<br>
</div><div> "GET /<a href="http://218.202.111.138/w1cbc02ee.0c726ba0:00000008/t03/_00000015">218.202.111.138/w1cbc02ee.0c726ba0:00000008/t03/_00000015</a> HTTP/1.0"</div><div><br></div><div> So, i want to know which part is wrong in my test, if i have made some mistakes in test, or polyclient sent http-request with wrong request-line, or my squid had some problems ,or anything else? How can i fix it? Any idea?please advice, and many thanks in advanced!!! </div>
</div>