From 057d5262a40613bad46b243f98d09db08e87382c Mon Sep 17 00:00:00 2001 From: wangyu- Date: Tue, 7 Nov 2017 03:54:54 -0600 Subject: [PATCH] do not drop packet in mode 1 --- fec_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fec_manager.cpp b/fec_manager.cpp index 46747f6..7cd7cbb 100644 --- a/fec_manager.cpp +++ b/fec_manager.cpp @@ -229,8 +229,8 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/) } if(fec_mode==1&&s!=0&&len>fec_mtu) { - mylog(log_warn,"message too long len=%d fec_mtu=%d,ignored\n",len,fec_mtu); - return -1; + mylog(log_warn,"mode==1,message len=%d,fec_mtu=%d,len>fec_mtu,packet may not be able to deliver\n",len,fec_mtu); + //return -1; } if(s==0&&counter==0) {