summaryrefslogtreecommitdiffstats
path: root/src/network/access/qhttpthreaddelegate.cpp
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-08-09 19:22:48 +0200
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-08-11 12:45:59 +0000
commit193abdfc0798cf10eac06769b650ac03e86eb55e (patch)
tree92ef3e1e58ea886a953bbb873fc7a9f23b3c9010 /src/network/access/qhttpthreaddelegate.cpp
parent615616b0699d98cfb9f4eeb67e005e3226398097 (diff)
http2frame - do not rely on a socket's buffer
- Whenever we have a read notification, read this data, even if it's not enough for a frame's header - otherwise, QNAM can use a socket in an Ubuffered mode and FrameReader can potentially fail to read anything correctly. - Do not call/rely on bytesAvailable and do not try to invoke _q_receiveReply in Qt::QueuedConnection mode, instead try to read until we end up in an incomplete frame or some error. Change-Id: I7f44ba9e34bc64f3e26bd29080f0050da635b3ae Reviewed-by: Alex Trotsenko <alex1973tr@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/access/qhttpthreaddelegate.cpp')
0 files changed, 0 insertions, 0 deletions