Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30024

QNativeSocketEngine::bytesAvailable returns "false" instead of "-1" on state error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.2
    • 5.0.1
    • Network: Sockets
    • None
    • 80af20429715228a69122ee824a64108dfb53809

    Description

      QNativeSocketEngine::bytesAvailable uses Q_CHECK_NOT_STATE to verify the state, but returns false (interpreted as zero bytes available) instead of -1 (error) on errors. This can adversely affect the behavior on "Host unreachable" disconnects.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpapp Laszlo Papp
            mckooper Joel McKee Cooper
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes