changelog shortlog tags branches changeset file revisions annotate raw help

Mercurial > hg > plan9front / sys/src/9/ip/tcp.c

revision 7252: 523d2d3e473f
parent 7008: c28a5e9a92d5
     1.1--- a/sys/src/9/ip/tcp.c
     1.2+++ b/sys/src/9/ip/tcp.c
     1.3@@ -3031,6 +3031,12 @@ procsyn(Conv *s, Tcp *seg)
     1.4 		tpriv->stats[Mss] = tcb->mss;
     1.5 	}
     1.6 
     1.7+	/* if the server does not support ws option, disable window scaling */
     1.8+	if(seg->ws == 0){
     1.9+		tcb->scale = 0;
    1.10+		tcb->snd.scale = 0;
    1.11+	}
    1.12+
    1.13 	tcb->snd.wnd = seg->wnd;
    1.14 	initialwindow(tcb);
    1.15 }