src/network/access/qhttpnetworkconnectionchannel.cpp
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   645     // if it does not need to be sent again we can set it to 0
   645     // if it does not need to be sent again we can set it to 0
   646     // the previous code did not do that and we had problems with accidental re-sending of a
   646     // the previous code did not do that and we had problems with accidental re-sending of a
   647     // finished request.
   647     // finished request.
   648     // Note that this may trigger a segfault at some other point. But then we can fix the underlying
   648     // Note that this may trigger a segfault at some other point. But then we can fix the underlying
   649     // problem.
   649     // problem.
   650     if (!resendCurrent)
   650     if (!resendCurrent) {
       
   651         request = QHttpNetworkRequest();
   651         reply = 0;
   652         reply = 0;
       
   653     }
   652 
   654 
   653     // move next from pipeline to current request
   655     // move next from pipeline to current request
   654     if (!alreadyPipelinedRequests.isEmpty()) {
   656     if (!alreadyPipelinedRequests.isEmpty()) {
   655         if (resendCurrent || connectionCloseEnabled || socket->state() != QAbstractSocket::ConnectedState) {
   657         if (resendCurrent || connectionCloseEnabled || socket->state() != QAbstractSocket::ConnectedState) {
   656             // move the pipelined ones back to the main queue
   658             // move the pipelined ones back to the main queue