I try to debug a python script that interfaces MPD using python-mpd2.
When the script tries to perform an action after being idle for a couple of hours, it terminates with an exception (BrokenPipeError in Python 3, socket.pipe in Python 2 - [Errno 32] Broken pipe in both cases).
The fact that the broken pipe only appears after hours of idle time makes debugging extremely slow.
Is there a way to provoke the same behavior - a broken pipe to mpd - manually?