devip: if the server does not support TCP ws option, disable window scaling (thanks joe9)
if the server responds without a window scale option in its syn-ack, disable window scaling alltogether as both sides need to understand the option.
This commit is contained in:
parent
d7aa56c073
commit
197ff3ac2f
1 changed files with 6 additions and 0 deletions
|
@ -3031,6 +3031,12 @@ procsyn(Conv *s, Tcp *seg)
|
||||||
tpriv->stats[Mss] = tcb->mss;
|
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;
|
tcb->snd.wnd = seg->wnd;
|
||||||
initialwindow(tcb);
|
initialwindow(tcb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue