Throttling body upload

26 views
Skip to first unread message

Dan

unread,
Jun 26, 2012, 9:06:16 AM6/26/12
to Sloppy-discuss
Hi,

Thanks for the tool - it was very useful to quickly test timeout
behaviours of transactions bound to servlets.

To test this particular servlet, I made a modification to
com.dallaway.sloppy.SlowProxyThread.sendRequest(HttpURLConnection,
Headers, String) to throttle the writing of the request body as it is
sent between the proxy and the server. This seemed to work reasonably
well, but I assume that a delay is being introduced twice, once as it
is read from the browser into the proxy and once as it is written from
the proxy to the server.

Would you like me to supply the change as is? Or would you rather that
the delay is only between the proxy and browser?

Thanks again,
-Dan

Richard Dallaway

unread,
Jun 26, 2012, 11:01:56 AM6/26/12
to sloppy-...@googlegroups.com
On Tuesday, June 26, 2012 2:06:16 PM UTC+1, Dan wrote:
Hi,

Thanks for the tool - it was very useful to quickly test timeout
behaviours of transactions bound to servlets.

Great - glad you found it useful. Thanks for letting me know.
 
To test this particular servlet, I made a modification to
com.dallaway.sloppy.SlowProxyThread.sendRequest(HttpURLConnection,
Headers, String) to throttle the writing of the request body as it is
sent between the proxy and the server. This seemed to work reasonably
well, but I assume that a delay is being introduced twice, once as it
is read from the browser into the proxy and once as it is written from
the proxy to the server.

Thanks Dan - I think the send and the receive ought to both the throttled.  If I've understood you...are we talking about upload and download throttling of content?
 
Would you like me to supply the change as is? Or would you rather that
the delay is only between the proxy and browser?

I'd like to see that change.

Cheers
Richard


Thanks again,
-Dan
Reply all
Reply to author
Forward
0 new messages