Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Slow TCP socket after quick succession of writes
Upon connection of QTcpSocket, I have 3 writes in succession. After this, there seems to be a noticeable delay in future messages being sent. I've been able to get around this by introducing a timer between the 3 writes, but want to understand what's causing this and how I can get around it.
Ketan__Patel__0011 last edited by Ketan__Patel__0011
Can you please provide the some more Details.
I want to know what actually happening ?
like You didn't get Response Properly
Or You can't send the message properly
The message sends fine, and the response is received, but there is a noticeable delay between when write() is called, and the message is sent.
It seems to be the case that the message is sent every 3 writes.
@EaccB Please show a minimal example that exhibits the behavior.
You can check the TCP transfer timing with Wireshark.
Ketan__Patel__0011 last edited by
Yes Can get the all details using Wireshark whatever Movements are happening on your TCPIP protocol
just simply select your destination Address or Your Host Address
vladimir.litvinenko last edited by
Perhaps everything is much simpler: you need to clear the socket buffer of the sent message. For a send stream connected to a socket, apply the flush method after a certain number of packets.