write in send_to, handle multiple lines per read
fix send buffer overrun