processone / tsung

Tsung is a high-performance benchmark framework for various protocols including HTTP, XMPP, LDAP, etc.
http://www.process-one.net/en/tsung/
GNU General Public License v2.0
2.55k stars 407 forks source link

http_use_server_as_proxy doesn't appear to work #220

Open darrentodd opened 7 years ago

darrentodd commented 7 years ago

http_use_server_as_proxy doesn't appear to work -in version 1.6 with

<option name="http_use_server_as_proxy" value="true" type="ts_http" />

Traffic isn't being directed towards my server set as:

  <!-- server side setup -->
  <servers>
      <server host="proxy" port="80" type="tcp"></server>
  </servers>

HTTP Session & request looks like:

   <session name="http-web" probability="100" type="ts_http">
     <setdynvars sourcetype="file" fileid="files" delimiter="\n" order="random">
       <var name="urltopull" />
     </setdynvars>
     <setdynvars sourcetype="file" fileid="servers" delimiter="\n" order="random">
       <var name="os" />
     </setdynvars>

     <for from="1" to="10" incr="1" var="i">    
       <setdynvars sourcetype="random_number" start="2" end="60">
         <var name="c" />
       </setdynvars>

       <transaction name="web">
         <request subst="true">
           <http url="http://%%_os%%/content%%_c%%/%%_urltopull%%" method="GET" version="1.1" >
           </http> 
         </request>
       </transaction>
     </for>
   </session>

What I see is all HTTP Txns are being sent to the IP addresses resolved from a list of servers defined from the "servers" fileid

tomers commented 4 years ago

Does anyone knows if this is still an issue? @tisba , @andrewvmail , @hui6075 , @nniclausse ?

tomers commented 4 years ago

Seems to work for me in latest release.