You can increase the buffer size of the receiving side or the sending buffer on the sending side.
You can increase the buffer size of the receiving side or the sending buffer on the sending side.
navi1084 (31st August 2009)
Thank you for the reply.
Can you tell me how can increase the buffer size.?
And even if i increase the buffer size, and user hold the minimize/maximize button for long time then same problem occure. Is there any other alternative solution.
This is OS dependent as you need to do that on TCP level.
And even if i increase the buffer size, and user hold the minimize/maximize button for long time then same problem occure.The ultimate solution is to use an operating system that doesn't block events when the window is draggedIs there any other alternative solution.
Apart from that you shouldn't use QDialog::exec() as it doesn't pass network traffic through. You should instead use QEventLoop and QDialog::setModal(). But of course you won't be able to use the native file dialog then...
In my opinion you should just handle such situation in the application streaming data. The situation you described is not the only one where the TCP flow control kicks in and blocks the sender.
Bookmarks