You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenStream call sendWindowUpdate, then sendWindowUpdate will sync window from client to server.
incrSendWindow and wirte will happen race. if incrSendWindow first run it is ok, else will lead sendWindow is not the same value to recvWindow, will out of sync.
// session_test.gofuncTestSendData_Large(t*testing.T) {
cfg:=testConf()
cfg.MaxStreamWindowSize=4*1024// ...
}
// const.goconst (
// initialStreamWindow is the initial stream window sizeinitialStreamWindowuint32=1*1024
)
=== RUN TestSendData_Large
--- FAIL: TestSendData_Large (5.00s)
session_test.go:415: short read: 1024
session_test.go:441: err: stream reset
panic: timeout [recovered]
panic: timeout
The text was updated successfully, but these errors were encountered:
if MaxStreamWindowSize is not used for like this issue, please close.
wllenyj
changed the title
When MaxStreamWindowSize is larger than initialStreamWindow, will lead to short read
When MaxStreamWindowSize is larger than initialStreamWindow, should lead to short read
Jul 26, 2018
OpenStream call sendWindowUpdate, then sendWindowUpdate will sync window from client to server.
incrSendWindow and wirte will happen race. if incrSendWindow first run it is ok, else will lead sendWindow is not the same value to recvWindow, will out of sync.
The text was updated successfully, but these errors were encountered: