Limitate speed of a socket-based data transferring

Tim Williams tim at tdw.net
Sun Sep 17 11:56:38 EDT 2006


On 15/09/06, Grant Edwards <grante at visi.com> wrote:
> On 2006-09-15, Steve Holden <steve at holdenweb.com> wrote:

> >
> > Of course this depends crucially on the window size. Since the
> > addition of the window scaling TCP option it's been possible
> > to specify very large windows, which are useful over
> > high-bandwidth high-delay links.
>
> True.  If the window size is large compared to the amount of
> data being transferred, then the throttling won't happen.
>
> > The remote (send) throttling will only start to cut in when
> > the window is full (since the whole point of the sliding
> > window mechanism is to allow continuous transmission in the
> > face of acknowledgment delay).
>
> Yup.

If the OP is also writing the client,  the throttling can be at the
client side to control the speed of writing to the socket.  But if
multiple clients connect to the server concurrently then this may not
help either!

:)



More information about the Python-list mailing list