in reply to packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe

>(with the 16 child processes) for around 20 thousand devices

Congratulations, you've implemented a network & services monitor. Best bet here is to be able to detect and recover or retry whatever it is you were doing when the connection was broken or failed.

  • Comment on Re: packet_write_wait: Connection to xx.xx.xx.xx port 22: Broken pipe