A simple way to simulate an EOF (-2) on the socket would be to setup port forwarding by
have your client connect using for example port 4575 instead of 4565. You can then use something like socat to do the forwarding. Example when starting socat on the same host as you are running ConfD where your application is running on the same or some other host:
$ socat TCP-LISTEN:4575,fork TCP:127.0.0.1:4565
Start ConfD and connect your client through port 4575. Hit Ctrl-C to close socat (and the connection).