DynamicWindow Patch

Michael A Stevens mstevens at cmu.edu
Thu Jul 8 23:12:26 EST 2004



On Thu, 8 Jul 2004, Damien Miller wrote:

> Michael A Stevens wrote:
> >>still, how does this matter if the tcp send and receive space are big enough?
> >
> >
> > It also creates the need for some ugly hack where you know the maximum
> > size of the buffer in the dynamic window code.
>
> It will need to have an idea of the limit anyway, otherwise how would it
> stop from overflowing size_t? The max TCP window is 2^32, size_t is
> 2^31-1 and we need at least one bit of headroom to be safe against
> arithmetic overflows.
>

So the max size we should allow is 2^30-1?


Mike




More information about the openssh-unix-dev mailing list