LinuxMCE Forums
June 20, 2013, 11:46:16 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: DCE Disconnects me after I intercept a message  (Read 828 times)
chrisbirkinshaw
Guru
****
Posts: 431


View Profile
« on: January 23, 2009, 09:24:36 pm »

I setup an event and command socket to DCE and register for message interceptors - all good so far. I can directly message my device as many times as I like, but when it receives an intercepted message the core seems to expect some response, and closes my connection when I don't give it any. What is the solution for this?

Thanks,

Chris
Logged
bulek
Administrator
wants to work for LinuxMCE
*****
Posts: 868

Living with LMCE


View Profile
« Reply #1 on: January 24, 2009, 01:10:09 am »

I setup an event and command socket to DCE and register for message interceptors - all good so far. I can directly message my device as many times as I like, but when it receives an intercepted message the core seems to expect some response, and closes my connection when I don't give it any. What is the solution for this?

Thanks,

Chris

Hi,

look under 7. and 8. here (I think that you also have to reply with OK to intercepted message):
http://wiki.linuxmce.org/index.php/Plain_Text_DCE_Messages

DCERouter is waiting only for a really short time...Quite frequently my device gets disconnected if it doesn't response quickly enough...

And when your device is disconnected in such way, there is a problem, cause its entry in /usr/pluto/locks stays and router reload won't start it again - you'll have to delete its ID from that file manually... I've learned this the hard way...

You can also check connectivity with Router by sending PING and receiving PONG back....

HTH,

regards,

Bulek.
« Last Edit: January 24, 2009, 01:12:41 am by bulek » Logged

Thanks in advance,

regards,

Bulek.
chrisbirkinshaw
Guru
****
Posts: 431


View Profile
« Reply #2 on: January 26, 2009, 07:57:58 pm »

Thanks for the tips. When I send an Ok after receiving an intercepted message it does indeed stop me getting disconnected, however I now receive the same message around 60 times after saying Ok! Have you seen this?

Regards,

Chris
Logged
bulek
Administrator
wants to work for LinuxMCE
*****
Posts: 868

Living with LMCE


View Profile
« Reply #3 on: January 26, 2009, 10:50:09 pm »

Thanks for the tips. When I send an Ok after receiving an intercepted message it does indeed stop me getting disconnected, however I now receive the same message around 60 times after saying Ok! Have you seen this?

Regards,

Chris
Not that I'm aware of... What messages do you intercept ? What is in DCERouter log ? Maybe this is normal behaviour....

Regards,

Bulek.

Logged

Thanks in advance,

regards,

Bulek.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!