fix socat buffer management