in reply to Pre-Forking Server, Reading client data
I think you need to read the socket in a select loop and append $data to the previously caught messages. You are only reading a single chunk.
After Compline,Zaxo