Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] EventSessionUpnp::Run, ReaderError handling - Endless subscription loop
17-11-2016, 08:23 AM (This post was last modified: 06-01-2017 07:04 PM by ChriD.)
Post: #1
[Solved] EventSessionUpnp::Run, ReaderError handling - Endless subscription loop
Hi,

I created a application that on some specific network installations uses a lot of cpu in idle mode.

The UPNP Log looks like this:

Code:
2016.11.16 20:16:04.138 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0101-10E7-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.140 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-10CD-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.145 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-10E3-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.145 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-10E8-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.150 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-10CE-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.152 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-10EA-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.159 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-10EB-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.160 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-10CF-8001-14DDA9D3F5DE seq - 0
...


This goes on all the time (the same sid's will repeat about each 2 seconds) and seems to raise the CPU usage to 100% ???
Code:
2016.11.16 20:16:02.608 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-1076-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:04.745 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-1076-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:06.901 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-1076-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:16:07.956 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0102-1076-8001-14DDA9D3F5DE seq - 0
...

It looks like subscription can be done but then is some error and the service will be unsubscribed again only to be subscribed a view seconds later.
Of course if there are a plenty of those devices (which it seems to be in that case) the error raises every 2-3 miliseconds --> high cpu usage?


Code:
2016.11.16 20:32:37.669 DEBUG:    UPNP: Subscription (0x7fda78011100) for 4D454930-0000-1000-8001-A813745D57A0, urn:schemas-upnp-org:service:ConnectionManager:1 completed
    Sid is 4D454931-0001-103A-8001-14DDA9D3F5DE
    Renew in 300 secs
2016.11.16 20:32:37.681 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-103A-8001-14DDA9D3F5DE seq - 0
2016.11.16 20:32:37.681 DEBUG:    UPNP: Unsubscribing (0x7fda78011100) sid 4D454931-0001-103A-8001-14DDA9D3F5DE
2016.11.16 20:32:37.683 DEBUG:    UPNP: Unsubscribed (0x7fda78011100) sid 4D454931-0001-103A-8001-14DDA9D3F5DE in 2ms
2016.11.16 20:32:42.168 DEBUG:    UPNP: Subscription (0x7fda78011100) for 4D454930-0000-1000-8001-A813745D57A0, urn:schemas-upnp-org:service:ConnectionManager:1 completed
    Sid is 4D454931-0001-103A-8001-14DDA9D3F5DE
    Renew in 300 secs
2016.11.16 20:32:42.179 DEBUG:    UPNP: EventSessionUpnp::Run, ReaderError handling sid - 4D454931-0001-103A-8001-14DDA9D3F5DE seq - 0
...

Any Ideas what could be the problem?


BTW: What does the "sid's" representate? There seems to be hundred differents sids in the log

Thanks
Find all posts by this user


Messages In This Thread
[Solved] EventSessionUpnp::Run, ReaderError handling - Endless subscription loop - ChriD - 17-11-2016 08:23 AM

Forum Jump: