If you are seeing the line received 0 length packet from server, apparent master shutdown
in your mysqld.err file (when your mysql server is a slave), check the server-id of the machines which are replicating from the same server. Most likely, you will find that there are boxes which have the same server-id