skajake
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
01:44 PM
Socket Problems
I am writing a remote in java which opens a socket connection to send the telnet ECP commands. However, if I drop the connection ungracefully (wifi lost, phone crash, etc), the Roku seems to keep that connection open. Until i reboot the Roku, i cannot initiate another telnet connection.
Any ideas how I can manage my socket connection to prevent this?
Any ideas how I can manage my socket connection to prevent this?
1 REPLY 1
EnTerr
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2012
10:00 PM
Re: Socket Problems
Probably nothing you can do about it if telnet has no timeout/uses no tcp keepalive/. Said telnet is included for debug purposes and is limited to 1 connection at a time, that's why you can't connect after silent drop of the client.
To avoid waiting for reboot, go to Settings and re-configure the network, that will force drop the telnet. Also consider using Roku ECP, which is way to control the player over http, works nice unlike telnet (recently there was discussion around that Roku2 broke the unsupported remoting over telnet)
To avoid waiting for reboot, go to Settings and re-configure the network, that will force drop the telnet. Also consider using Roku ECP, which is way to control the player over http, works nice unlike telnet (recently there was discussion around that Roku2 broke the unsupported remoting over telnet)