Hello everyone!
At my company we have build a Powershell client-server solution for specific Active Directory interactions.
The Server component basically listens for incoming clients using the function AcceptTcpClient from the .Net object System.Net.Sockets.TcpListener.
The system generally performs well for our purpose, but there is one problem: When no clients have been active for 5-10 minutes or so, the Server script kind of falls asleep. The first request after such pause experiences a long wait time (5 seconds or more).
After that, responses are swift again...
Is there anything we can do to prevent the Server script from entering this sleep mode?
BR / Poul