src/network/access/qhttpnetworkconnectionchannel.cpp
changeset 25 e24348a560a6
parent 23 89e065397ea6
child 30 5dc02b23752f
equal deleted inserted replaced
23:89e065397ea6 25:e24348a560a6
   289         socket->flush();
   289         socket->flush();
   290 
   290 
   291         // ensure we try to receive a reply in all cases, even if _q_readyRead_ hat not been called
   291         // ensure we try to receive a reply in all cases, even if _q_readyRead_ hat not been called
   292         // this is needed if the sends an reply before we have finished sending the request. In that
   292         // this is needed if the sends an reply before we have finished sending the request. In that
   293         // case receiveReply had been called before but ignored the server reply
   293         // case receiveReply had been called before but ignored the server reply
   294         QMetaObject::invokeMethod(this, "_q_receiveReply", Qt::QueuedConnection);
   294         if (socket->bytesAvailable())
       
   295             QMetaObject::invokeMethod(this, "_q_receiveReply", Qt::QueuedConnection);
   295         break;
   296         break;
   296     }
   297     }
   297     case QHttpNetworkConnectionChannel::ReadingState:
   298     case QHttpNetworkConnectionChannel::ReadingState:
   298     case QHttpNetworkConnectionChannel::Wait4AuthState:
   299     case QHttpNetworkConnectionChannel::Wait4AuthState:
   299         // ignore _q_bytesWritten in these states
   300         // ignore _q_bytesWritten in these states