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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.8
    • Network: Sockets
    • None
    • Windows

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

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

       

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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes