Bug 40438 - setting "httpclient.localaddress" has no effect
Summary: setting "httpclient.localaddress" has no effect
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 2.2
Hardware: Other Linux
: P2 major (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
Depends on:
Reported: 2006-09-07 15:32 UTC by andresgr
Modified: 2006-09-08 01:40 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description andresgr 2006-09-07 15:32:01 UTC
In jmeter.properties the mentioned property should allow to set the local ip
address for HTTP requests.

It does not work. Revising the class HTTPSampler2 i have found that 

251: HostConfiguration hc = new HostConfiguration();

this "hc" object is correctly created but it is  *not* used in the creation of
the httpClient object.
Comment 1 Sebb 2006-09-07 18:31:28 UTC
I see what you mean. Not sure what is going on here, because I thought the 
proxy code was working, and that uses the HostConfiguration ... perhaps 
neither works.

I've checked in a change to add the host configuration to the client object - 
if you would like to give it a try, this is in the nightly build: 2-2.20060907.

If this fixes the problem (or not!) please update this issue accordingly.

Comment 2 andresgr 2006-09-08 08:40:27 UTC

It works fine now.