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

QLocalSocket shouldn't return silently in case of state mismatch

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.7.0
    • Network: Sockets
    • None

    Description

      qlocalsocket_win.cpp:129

      if (state() == ConnectedState || state() == ConnectingState)
      return;

      If a user wait for some reaction on connectToServer() call, he will never get it. He must check the same condition himself, to make some workaround. Thus this condition will be checked twice. Every time.
      Either an error signal should emit, or some error value should return to avoid this.
      Btw, QAbstractSocket::connectToHost() function has the same feature.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            szef Gennady Kazachek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes