Page 1 of 1

[BUG] Twonky Server 7.2.8 Activity Status is broken

Posted: Mon Jul 28, 2014 5:32 pm
by phibertron
Prior to Twonky Server 7.2.x
I think most of us had a handle on what "Activity Status" of streaming and not streaming meant
and when one would or would not see it, and taking into account client buffering
Twonky Server 7.2.7

- rpc/stream_info now contains information on device's online state

Twonky Server v7.2.6

- Fixed a bug at the Web UI which always indicated that Twonky Server is streaming although the streaming was stopped.
Note: This behavior can still be seen on devices with huge buffers
But it seems something is not working right again, Im using "Twonky Server 7.2.8"

If one starts to sream an item, for example a video,
you will see the "Activity Status" in the web interface reflect under "Status"
I know that this is based on the results of "/rpc/stream_active" with "SA:1" meaning active

and I also know that "/rpc/stream_info" will return a list of items currently being streamed
and when I started my first stream I see this being returned
11:58:27 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\foo.m4v online
I then stop that item on the client, and then start streaming something else, and then see this returned
11:58:27 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\foo.m4v online
11:59:05 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\test.mp4 online
I then stop playing the currently streaming item, and then wait..., and after some time I see this returned
NOTE: "Activity Status" still reflects "Streaming", and "/rpc/stream_active" returns "SA:1"
11:58:27 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\foo.m4v offline
11:59:05 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\test.mp4 offline
I then wait..., and eventually I see this being returned
NOTE: "Activity Status" still reflects "Streaming", and "/rpc/stream_active" returns "SA:1"
11:59:05 6 Apple iPhone 192.168.1.125 D:\shares\Videos\Temp\test.mp4 #STATUS:192.168.1.125*
The above will never go away, I even turned off the client, and waited and waited, only a server reboot works
The list returned by "/rpc/stream_info" for me can get huge, as there are lots of client on my network that stream

I suspect that the online status changes are the cause, from me seeing this "#STATUS:192.168.1.125*"
just a guess though
;)

Re: [BUG] Twonky Server 7.2.8 Activity Status is broken

Posted: Tue Jul 29, 2014 10:40 pm
by phibertron
The Activity Status is still broken

However, I did discover more about these two settings
which seem to effect the "/rpc/stream_info" results
# Expire peristent devices inactive for more than this period (in days) (0 to suppress expiry)
pdbexpiretime=14
# Set to non-zero to disable persistent connections, zero (default) to use them
no_persist_conn=0
If I changed "no_persist_conn" to 1
the list "/rpc/stream_info" info would clear itself, as one would expect it to
but not all of the time

I suspect that had I waited the 14 days the pdbexpiretime is set to, the result would have been the same

But Sadly, even when "/rpc/stream_info" clears itself
The Activity Status for "/rpc/stream_active" still returns "SA:1"