add EOF in client side msg creater