Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is anyone familiar with a delay from QUdpSocket on startup for Ubuntu?
Forum Updated to NodeBB v4.3 + New Features

Is anyone familiar with a delay from QUdpSocket on startup for Ubuntu?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 4 Posters 624 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    James Mark Chan
    wrote on last edited by
    #1

    I seem to have had two experiences with Qt where it will introduce a delay at startup or require a delay to be added to the application during system startup. I wanted to know if anyone has had similar experiences?

    Scenario 1 is when we had a polling thread that was converted to a notification based implementation by adding the main event loop QCoreApplication and wiring the QUdpSocket.readyRead() signal to a slot in a QObject to process.

    Scenario 2 is a third part app developed in Qt where we had to add a delay at startup to ensure the system would work properly.

    I'm curious if this is unique to Qt and if so why and do other C++/C frameworks solve socket communications differently?

    jsulmJ 1 Reply Last reply
    0
    • J James Mark Chan

      I seem to have had two experiences with Qt where it will introduce a delay at startup or require a delay to be added to the application during system startup. I wanted to know if anyone has had similar experiences?

      Scenario 1 is when we had a polling thread that was converted to a notification based implementation by adding the main event loop QCoreApplication and wiring the QUdpSocket.readyRead() signal to a slot in a QObject to process.

      Scenario 2 is a third part app developed in Qt where we had to add a delay at startup to ensure the system would work properly.

      I'm curious if this is unique to Qt and if so why and do other C++/C frameworks solve socket communications differently?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @James-Mark-Chan I fear you will have to provide more information as from that description it isn't clear what your app is doing. Before accusing Qt we should first find out what is really going on in your app.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      5
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #3

        Do you have any sample program for us to check ? We also use socket inside our program. We don't see such issue. It could the way you have done programming practice ?

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        1 Reply Last reply
        1
        • J Offline
          J Offline
          James Mark Chan
          wrote on last edited by
          #4

          Scenario 2 was incorrectly reported from a peer and I was able to fix the bug. So that is no longer an issue. That given I'm going to assume scenario 1 is a bug in our vendors code which is an old issue. Thank you both for your time. I was trying to find a link to this thread so I could update it with the resolution but some how did not find a way to see all the topics I've posted. This is an awesome community.

          aha_1980A 1 Reply Last reply
          3
          • J James Mark Chan

            Scenario 2 was incorrectly reported from a peer and I was able to fix the bug. So that is no longer an issue. That given I'm going to assume scenario 1 is a bug in our vendors code which is an old issue. Thank you both for your time. I was trying to find a link to this thread so I could update it with the resolution but some how did not find a way to see all the topics I've posted. This is an awesome community.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @James-Mark-Chan you should find all your posts in your profile. just click on your username.

            And thanks for the flowers :)

            Qt has to stay free or it will die.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved