jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksei Balan <abalanonl...@gmail.com>
Subject Re: Migration to HC4/HC5 last version
Date Thu, 12 Oct 2017 07:41:17 GMT
Hello Philippe Mouawad,

I think the idea of getting rid of virtual host is to simplify the
object design.
Virtual host functionality can be reduced to simple setting of the
"Host" header in http request.
You can see the example of virtual host implementation for httpclient 5.0 here
https://github.com/abalanonline/httpclient4to5

Aleksei Balan



On 10/11/17, Philippe Mouawad <pmouawad@apache.org> wrote:
> Hello Team,
> Pinging again in case somebody can help.
> Regards
>
>
> On Mon, Oct 9, 2017 at 11:19 PM, Philippe Mouawad <pmouawad@apache.org>
> wrote:
>
>> Hello,
>> Within JMeter projet I am working on migration fully to last APIs of
>> HttpClient:
>>
>>    - https://bz.apache.org/bugzilla/show_bug.cgi?id=58757
>>
>> You can see current code here:
>>
>>    - https://github.com/ubikloadpack/jmeter/tree/HC4_FULL_MIGRATION
>>
>> I have nearly completed the work except for 2 remaining items:
>>
>>    - Virtual Host:
>>       - I don't see this parameter in newer interfaces
>>          - https://github.com/apache/jmeter/blob/trunk/src/
>>          protocol/http/org/apache/jmeter/protocol/http/sampler/
>>          HTTPHC4Impl.java#L1117
>>
>> <https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java#L1117>
>>
>>
>>    - "Slow " connection feature:
>>       - This feature allows to simulate slow connection. Currently we
>>       wrap Input/Output stream returned by socket with SlowInputStream/
>>       SlowOutputStream
>>       - https://github.com/apache/jmeter/blob/trunk/src/
>>          protocol/http/org/apache/jmeter/protocol/http/util/
>>          SlowHC4SocketFactory.java
>>
>> <https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/SlowHC4SocketFactory.java>
>>          - https://github.com/apache/jmeter/blob/trunk/src/
>>          protocol/http/org/apache/jmeter/protocol/http/sampler/
>>          HTTPHC4Impl.java#L322
>>
>> <https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java#L322>
>>          - https://github.com/apache/jmeter/blob/trunk/src/
>>          protocol/http/org/apache/jmeter/protocol/http/sampler/
>>          HTTPHC4Impl.java#L892
>>
>> <https://github.com/apache/jmeter/blob/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java#L892>
>>       - It is not clear for me how this feature should be implemented:
>>          - Should we adapt SSLSocket and Socket with a Slow feature ?
>>
>>
>> Hope you can help by pointing me to the components.
>>
>> Thanks
>>
>> Regards
>>
>> Philippe M.
>>
>> @philmdot
>>
>

Mime
View raw message