On Friday, 19 January 2024 06:34:37 PST Christophe Thomas wrote:
> Using a tcp socket I noticed that I have first readyread that passes me the
> http header from the first packet and then waits the end of the tcp flow to
> gives me the full body/data part. When modifify the socket read buffer size
> it is only modifying the available data between readyread.
> 
>  I'm still not sure if this is due to windows network stack or is it
> related to Qt.

QTcpSocket will emit readyRead() every time that the OS wakes it up with more 
data. That may not happen for every single packet; that's the OS's choice. But 
the OSes don't usually wait long after receiving TCP packets and processing 
them to wake the application up.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to