mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-31 20:29:37 +08:00
update log
This commit is contained in:
parent
19e718f0a3
commit
1eeef14470
@ -218,10 +218,14 @@ int fec_encode_manager_t::input(char *s,int len/*,int &is_first_packet*/)
|
|||||||
//int counter_back=counter;
|
//int counter_back=counter;
|
||||||
assert(fec_mode==0||fec_mode==1);
|
assert(fec_mode==0||fec_mode==1);
|
||||||
|
|
||||||
if(fec_mode==0&& s!=0 &&counter==0&&blob_encode.get_shard_len(fec_data_num,len)>fec_mtu)
|
if(fec_mode==0&& s!=0 &&counter==0)
|
||||||
{
|
{
|
||||||
mylog(log_warn,"message too long len=%d,ignored\n",len);
|
int out_len=blob_encode.get_shard_len(fec_data_num,len);
|
||||||
return -1;
|
if(out_len>fec_mtu)
|
||||||
|
{
|
||||||
|
mylog(log_warn,"message too long ori_len=%d out_len=%d fec_mtu=%d,ignored\n",len,out_len,fec_mtu);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(fec_mode==1&&s!=0&&len>fec_mtu)
|
if(fec_mode==1&&s!=0&&len>fec_mtu)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user