linux - duplicating UDP stream via socat -


i'm developing gateway product connected host pc via usb, embedded linux inside. task read read logs udp stream device file , forward both remote host , save file in file system (ramfs) using following command:

socat -b1450 -u /dev/ueservice0 - | tee -a /tmp/modemfw.log | socat -b1450 -u - udp4-datagram:${ipaddr}:4566

the problem when there's heavy data traffic (ftp) stream running on same usb interface approx. half of stream doesn't reach destination, though modemfw.log file contains logs. weird thing if don't save logs file on ramfs works fine , host receives stream same heavy traffic:

socat -b1450 -u /dev/ueservice0 udp4-datagram:${ipaddr}:4566

does know problem tee causes half of packets lost? there way it? appreciated!


Comments