You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by lior grinfeld <li...@gmail.com> on 2007/07/11 11:59:36 UTC

how to simulate slow connection?

Hi,

i am trying to simulate slow connection. how can i do it?


Thanks

Lior Grinfeld

Re: how to simulate slow connection?

Posted by lior grinfeld <li...@gmail.com>.
Thanks, that what i looked for.


On 7/11/07, sebb <se...@gmail.com> wrote:
>
> I implemented this for JMeter.
>
> See the Slow*.java files in:
>
>
> http://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/util/
>
> and also in:
>
>
> http://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/util/
>
> The socket factory is registered as follows:
>
> Protocol.registerProtocol("http",
>      new Protocol("http",
>         new SlowHttpClientSocketFactory(cps),
>         80));
>
> The HTTPS version is rather more complicated to set up in JMeter
> because we use custom SSL authentication which supports both
> httpclient and java protocol stacks, but it comes to the same thing.
>
> S.
> On 11/07/07, lior grinfeld <li...@gmail.com> wrote:
> > Hi Neil,
> >
> > I thought about something inside the httpclient code, maybe someone
> wrote
> > slow client implementation.
> > any way thanks and I wonder how did you do it using proxy?
> >
> > Regards
> > Lior
> >
> > On 7/11/07, neil al <nv...@gmail.com> wrote:
> > >
> > > I think I have simulated it using a proxy or a web debugger like
> > > (charles).
> > >
> > > On 7/11/07, lior grinfeld <li...@gmail.com> wrote:
> > > >
> > > > Hi,
> > > >
> > > > i am trying to simulate slow connection. how can i do it?
> > > >
> > > >
> > > > Thanks
> > > >
> > > > Lior Grinfeld
> > > >
> > >
> >
> >
> >
> > --
> >
> > Regards
> > Lior Grinfeld
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
>
>


-- 

Regards
Lior Grinfeld

Re: how to simulate slow connection?

Posted by sebb <se...@gmail.com>.
I implemented this for JMeter.

See the Slow*.java files in:

http://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/util/

and also in:

http://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/util/

The socket factory is registered as follows:

Protocol.registerProtocol("http",
     new Protocol("http",
        new SlowHttpClientSocketFactory(cps),
        80));

The HTTPS version is rather more complicated to set up in JMeter
because we use custom SSL authentication which supports both
httpclient and java protocol stacks, but it comes to the same thing.

S.
On 11/07/07, lior grinfeld <li...@gmail.com> wrote:
> Hi Neil,
>
> I thought about something inside the httpclient code, maybe someone wrote
> slow client implementation.
> any way thanks and I wonder how did you do it using proxy?
>
> Regards
> Lior
>
> On 7/11/07, neil al <nv...@gmail.com> wrote:
> >
> > I think I have simulated it using a proxy or a web debugger like
> > (charles).
> >
> > On 7/11/07, lior grinfeld <li...@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > i am trying to simulate slow connection. how can i do it?
> > >
> > >
> > > Thanks
> > >
> > > Lior Grinfeld
> > >
> >
>
>
>
> --
>
> Regards
> Lior Grinfeld
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: how to simulate slow connection?

Posted by lior grinfeld <li...@gmail.com>.
Hi Neil,

I thought about something inside the httpclient code, maybe someone wrote
slow client implementation.
any way thanks and I wonder how did you do it using proxy?

Regards
Lior

On 7/11/07, neil al <nv...@gmail.com> wrote:
>
> I think I have simulated it using a proxy or a web debugger like
> (charles).
>
> On 7/11/07, lior grinfeld <li...@gmail.com> wrote:
> >
> > Hi,
> >
> > i am trying to simulate slow connection. how can i do it?
> >
> >
> > Thanks
> >
> > Lior Grinfeld
> >
>



-- 

Regards
Lior Grinfeld

Re: how to simulate slow connection?

Posted by neil al <nv...@gmail.com>.
I think I have simulated it using a proxy or a web debugger like (charles).

On 7/11/07, lior grinfeld <li...@gmail.com> wrote:
>
> Hi,
>
> i am trying to simulate slow connection. how can i do it?
>
>
> Thanks
>
> Lior Grinfeld
>