Hi, I try to send huge files to Internet by HTTP POST, but QNetworkAccessManager load whole file in memory before send it, and that's is a problem for huge files. So, I have trying to implement a program that send large files on chunks through QTcpSocket in a QThread in background. But, as they are large files, I want to give to user option to cancel operation.
My problem is that when user cancel the operation, sometimes all work fine. But other sometimes, the socket continue sending file in background even though I've canceled. And sometimes, thread stop send data but the socket it remains open until whole program closes.
I have read many posts of this forum, and others, talking about QThreads and QTcpSockets/QTimers, but I can't solve my problem. I'm desperate.
The code is attached to this post.
Thanks to all, and sorry for my poor english.
Bookmarks