Why sometimes the signal/method call can't be sent successfully

Edison_lin-林俊翰 edison_lin at gemtek.com.tw
Wed May 27 00:29:45 PDT 2009


Hi,
I find another case that dbus-daemon doesn't notice the sending request at all.

BR,
Edison Lin
  ----- Original Message ----- 
  From: Edison_lin-林俊翰 
  To: Naveen Verma 
  Cc: dbus at lists.freedesktop.org 
  Sent: Wednesday, May 27, 2009 11:35 AM
  Subject: Re: Why sometimes the signal/method call can't be sent successfully


  Hi,
  The attached files are the logs after open verbose mode. After comparing these two logs I found one place different : After removing the message from outgoing queue, for failed case the dispatch status always shows complete, as for the successful case there's always data remains. You could find this after the verbose message "_dbus_connection_send_preallocated_and_unlock middle"

  For your reference,
  BR,
  Edison

  ----- Original Message ----- 
    From: Edison_lin-林俊翰 
    To: Naveen Verma 
    Cc: dbus at lists.freedesktop.org 
    Sent: Tuesday, May 26, 2009 8:23 PM
    Subject: Re: Why sometimes the signal/method call can't be sent successfully


    Hi,
    I think it's probably not my sender's fault, because sometimes the sending request seems to disappear
    through observing dbus-monitor even if I use the following command:
    dbus-send --session --type=signal --dest=com.wiley.test / com.wiley.test.TestSignal string::"rock"
    Any idea is appreciated !

    BR,
    Edison Lin
      ----- Original Message ----- 
      From: Edison_lin-林俊翰 
      To: Naveen Verma 
      Cc: dbus at lists.freedesktop.org 
      Sent: Tuesday, May 26, 2009 6:33 PM
      Subject: Re: Why sometimes the signal/method call can't be sent successfully


      Hi Naveen,
      I'm looking at session bus, and I'm using low level C API to do this. The attached is the source code of the sender, do I miss something ?

      Appreciate,
      Edison Lin
        ----- Original Message ----- 
        From: Naveen Verma 
        To: Edison_Lin-林俊翰 
        Cc: dbus at lists.freedesktop.org 
        Sent: Tuesday, May 26, 2009 6:02 PM
        Subject: Re: Why sometimes the signal/method call can't be sent successfully






          Hi,
          I used the dbus-monitor to monitor the status of message bus, and I found that sometimes after sending a signal/method call and flush the connection, nothing happened(I meant the information about the sending action) in the description produced from dbus-monitor. After several times of retries then it shows the sending message, at the same time the receiver got the request. I'm wondering the reason causing this ? Is it a usual case so that I have to establish a mechanism to ensure the delivering of request ?

        -This is strange, I am also using dbu-monitor quit a lot but never face this issue. Are you looking at system bus or session bus? 


          Appreciate,
          Edison Lin

        -Br
        Naveen
         


          _______________________________________________
          dbus mailing list
          dbus at lists.freedesktop.org
          http://lists.freedesktop.org/mailman/listinfo/dbus



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20090527/b1df3a49/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: got.txt
Url: http://lists.freedesktop.org/archives/dbus/attachments/20090527/b1df3a49/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: miss.txt
Url: http://lists.freedesktop.org/archives/dbus/attachments/20090527/b1df3a49/attachment-0003.txt 


More information about the dbus mailing list