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

QLocalSocket shouldn't return silently in case of state mismatch

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTBUG-22450
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There are no open Gerrit changes