fix tcp and ipc publish data bug