[PATCH] TSimpleIPCClient.ServerRunning returns True when a stale file is left from TSimpleIPCServer crash
Original Reporter info from Mantis: AndrewH @andrewd207
-
Reporter name:
Original Reporter info from Mantis: AndrewH @andrewd207
- Reporter name:
Description:
Hi the attached patch adds additional checks if the server is actually running when the named pipe/file exists.
If a TSimpleIPCServer program crashes or is killed it can leave a named pipe in the file system. A Client using .ServerRunning will mistakenly believe that the server is running when the stale file is left.
This patch makes it much more reliable in preventing a hang that exists when a client waits for a server that is not there.
Mantis conversion info:
- Mantis ID: 21289
- OS: *nix
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 20385 (#99892a7e)
- Monitored by: » luizamerico (Luiz Americo)