Unsolved 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.
-
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.
-
-
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 -
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.