Philippe Mouawad
2017-10-09 21:19:12 UTC
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
- "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/sampler/HTTPHC4Impl.java#L322
-
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
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
- "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/sampler/HTTPHC4Impl.java#L322
-
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