40438 - setting "httpclient.localaddress" has no effect

Added hostconfig to httpclient object

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2@441167 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: cb3d0738c0
This commit is contained in:
Sebastian Bazley 2006-09-07 18:22:45 +00:00
parent 991d1d3f2d
commit ecbb959952
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ public class HTTPSampler2 extends HTTPSamplerBase {
if ( httpClient == null )
{
httpClient = new HttpClient(new SimpleHttpConnectionManager());
httpClient.setHostConfiguration(hc);
map.put(hc, httpClient);
}