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

QTcpSocket对象, 执行flush方法时,如果此时通讯已断开, 会在flush内部执行disconnected槽函数

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.9.8
    • Fix Version/s: None
    • Component/s: Network: Sockets
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      QTcpSocket对象, 执行flush方法时,如果此时通讯已断开, 会在flush内部执行disconnected槽函数。

      文档里并没有提到会有这种处理。

       

      这个设计会引发灾难, 希望在通讯断开时只返回错误码就好。

        Attachments

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

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            caohoujie caohoujie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes