Timeout settings

35 views
Skip to first unread message

Egor Emeliyanov

unread,
Oct 17, 2012, 6:08:26 PM10/17/12
to cassia...@googlegroups.com
Good afternoon everyone and thank you for a great tool!

I'm using Cassia in conjunction with PowerShell module by ShayLevy and everything works great.

However, every now and then our terminal servers would freeze and don't respond to RPC. It doesn't matter whether I run "query user /server:xxx" from command prompt, use Cassia or Citrix console - the server will linger the query forever. There's no result and no exception thrown. It happens randomly and could be a Windows or XenApp issue - it's beyond the point. I was wondering if it is possible to set a timeout value when calling GetRemoteServer method (it appears to be much easier than handling timeouts in PowerShell itself).

Regards,
Egor.

Dan Ports

unread,
Oct 18, 2012, 9:23:01 AM10/18/12
to cassia...@googlegroups.com
Egor,

I'm afraid the underlying Remote Desktop Services API, as with most (if not all) RPC-based Windows APIs, does not provide built-in timeout support (e.g. via a timeout parameter), so this is a bit outside Cassia's scope. The best you can do is run the remote query on a separate thread and kill that thread if you don't get a response after a certain timeout period. I'm not sure exactly what that looks like in PowerShell, but that's the basic idea.

Hope that helps,
Dan

--
You received this message because you are subscribed to the Google Groups "Cassia Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cassia-users/-/Np-weT5ZNqgJ.
To post to this group, send email to cassia...@googlegroups.com.
To unsubscribe from this group, send email to cassia-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cassia-users?hl=en.

Egor

unread,
Oct 18, 2012, 12:54:47 PM10/18/12
to cassia...@googlegroups.com
Yep, working on this now. I was just curious if there's an easier way.

Thanks for your reply and a great tool!

Egor.
Reply all
Reply to author
Forward
0 new messages