Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1339

Event_loop injection is very slow to trigger the events

Details

    Description

      Full details here: http://qpid.2158936.n2.nabble.com/Proton-c-0-14-0-0-15-0-Event-loop-injection-is-very-slow-compared-to-timer-schedule-td7652982.html

      The attached test code requires a Broker running.

      Output of attached code:

      functor called
      closed connection took 1.155 seconds
      

      ==> 1.155 seconds is too much

      Attachments

        1. main.cpp
          2 kB
          Justin Ross
        2. main.cpp
          2 kB
          Adel Boutros

        Issue Links

          Activity

            adelboutros@live.com Adel Boutros added a comment -

            Hello Alan,

            Did yoi have time to work on this issue?

            Regards,
            Adel

            adelboutros@live.com Adel Boutros added a comment - Hello Alan, Did yoi have time to work on this issue? Regards, Adel
            aconway Alan Conway added a comment - - edited

            The new C++ binding based on the C proactor PROTON-1400 will provide a new implementation of inject .The reproducer for this issue should be checked against it to ensure it fixes the problem.

            aconway Alan Conway added a comment - - edited The new C++ binding based on the C proactor PROTON-1400 will provide a new implementation of inject .The reproducer for this issue should be checked against it to ensure it fixes the problem.
            jross Justin Ross added a comment -

            Updated test program

            jross Justin Ross added a comment - Updated test program
            jross Justin Ross added a comment -

            It's now working as expected.

            [jross@server adir]$ make main && ./main
            g++ main.cpp -o main  -lqpid-proton -lqpid-proton-cpp -lpthread
            functor called
            closed connection took 0.000562545 seconds
            [jross@server adir]$ 
            
            jross Justin Ross added a comment - It's now working as expected. [jross@server adir]$ make main && ./main g++ main.cpp -o main -lqpid-proton -lqpid-proton-cpp -lpthread functor called closed connection took 0.000562545 seconds [jross@server adir]$

            People

              jross Justin Ross
              adelboutros@live.com Adel Boutros
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: