Hey @all,

i have a problem with my client/server application.
The application is to transfer files over a network. this works fine, but now checked the transfer over an VPN tunnel. and here comes the problem. After a while the client was transferin a file, I received a SocketTimoutError SIGNAL.

I've read some posts and find a resolution (on windows after a timeout is occured, the socket must be flushed so the rest of the data can be transfered.)

But when i tried this:
Qt Code:
  1. void Client::displayError(QAbstractSocket::SocketError socketError) {
  2. switch (socketError) {
  3. case QAbstractSocket::SocketTimeoutError: {
  4. cout << "SocketTimeoutError: Trying to flush" << endl;
  5. QMap<QString, QVariant> empty_val;
  6. sendMessage(GD_FLUSH, empty_val);
  7. tcpSocket->flush();
To copy to clipboard, switch view to plain text mode 
nothing happens, i got the message "SocketTimeoutError: Trying to flush" and that was it.

So my question is, how can i transfer over an VPN tunnel without timeout? And/Or Can i handle the timeout?

Regards NoRulez