jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Migration to HC4/HC5 last version
Date Thu, 12 Oct 2017 08:33:46 GMT
Thanks for your help Aleksei
So 1 question remains for me:

   - "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 ?


Regards

On Thu, Oct 12, 2017 at 9:41 AM, Aleksei Balan <abalanonline@gmail.com>
wrote:

> 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
> >>
> >
>



-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message