Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/network/socket/qnativesocketengine.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    186186        // one exception: SocketError(11) bypasses this as it's purely
    187187        // a temporary internal error condition.
     188        // Another exception is the way the waitFor*() functions set
     189        // an error when a timeout occurs. After the call to setError()
     190        // they reset the hasSetSocketError to false
    188191        return;
    189192    }
     
    860863        d->setError(QAbstractSocket::SocketTimeoutError,
    861864            QNativeSocketEnginePrivate::TimeOutErrorString);
     865        d->hasSetSocketError = false; // A timeout error is temporary in waitFor functions
    862866        return false;
    863867    } else if (state() == QAbstractSocket::ConnectingState) {
     
    928932        d->setError(QAbstractSocket::SocketTimeoutError,
    929933                    QNativeSocketEnginePrivate::TimeOutErrorString);
     934        d->hasSetSocketError = false; // A timeout error is temporary in waitFor functions
    930935        return false;
    931936    } else if (state() == QAbstractSocket::ConnectingState) {
     
    979984        d->setError(QAbstractSocket::SocketTimeoutError,
    980985                    QNativeSocketEnginePrivate::TimeOutErrorString);
     986        d->hasSetSocketError = false; // A timeout error is temporary in waitFor functions
    981987        return false;
    982988    } else if (state() == QAbstractSocket::ConnectingState) {
Note: See TracChangeset for help on using the changeset viewer.