diff --git a/sys/src/9/ip/tcp.c b/sys/src/9/ip/tcp.c index 775d1b1ce..8d0195ac3 100644 --- a/sys/src/9/ip/tcp.c +++ b/sys/src/9/ip/tcp.c @@ -3031,6 +3031,12 @@ procsyn(Conv *s, Tcp *seg) tpriv->stats[Mss] = tcb->mss; } + /* if the server does not support ws option, disable window scaling */ + if(seg->ws == 0){ + tcb->scale = 0; + tcb->snd.scale = 0; + } + tcb->snd.wnd = seg->wnd; initialwindow(tcb); }