Re: [PATCH] Memory leak in smpp_pdu.c

2016-10-26 Thread amalysh
Hi,

make sense, commited to svn.

Alex

> Am 18.10.2016 um 22:37 schrieb Donald Jackson :
> 
> Hi Alex,
> 
> Personally I think we should not reject PDU's that have this case. While it 
> is pointless to send the same TLV multiple times in our case, we have 
> established that this behavior is implicitly 'ok' by having Kannel accept 
> these since the meta data patch (+- 7 years now). Changing this behavior 
> would potentially cause issues for users with no real gain.
> 
> Thanks,
> Donald
> 
> On 18 October 2016 at 13:18, Alexander Malysh  > wrote:
> Hi, 
> 
> good catch! But there is a question: should we really accept such wrong PDUs 
> or reject them? 
> IMHO rejecting those would be the correct behavior but I don't see in SMPP 
> spec that case described. 
> 
> Thanks,
> Alexander Malysh
>  
> From: Stipe Tolj   
> Sent: Monday, September 26, 2016 07:24 PM 
> To: 
> Cc: kannel_dev_mailinglist   
> Subject: Re: [PATCH] Memory leak in smpp_pdu.c 
> Am 24.09.2016 13:55, schrieb Rene Kluwen: 
> > +1 from me. 
> 
> yep, good catch Donald. 
> 
> +1 for it. 
> 
> If no objections, will commit. 
> 
> -- 
> Best Regards, 
> Stipe Tolj 
> 
> --- 
> Düsseldorf, NRW, Germany 
> 
> Kannel Foundation tolj.org  system architecture 
> http://www.kannel.org/  http://www.tolj.org/ 
>  
> 
> stolj at kannel.org  st at tolj.org  
> ---
> 
> 
> 
> -- 
> Donald Jackson



Re: [PATCH] Reduce logging in dbpool_mysql.c

2016-10-26 Thread amalysh
:-)

> Am 18.10.2016 um 22:38 schrieb Donald Jackson :
> 
> Patch withdrawn :)
> 
> On 18 October 2016 at 13:24, Alexander Malysh  > wrote:
> Hi, 
> 
> definitely -1 for #ifdef.  
> And I agree with Rene here, debug is debug and if you don't like it => don't 
> enable it. 
> Kannel has enough infos what's going on even without debug enabled and if 
> users 
> enable debug they don't have to complain about too much information. 
> 
> Thanks,
> Alexander Malysh
>  
> From: Stipe Tolj   
> Sent: Monday, September 26, 2016 07:35 PM 
> To: 
> Cc: kannel_dev_mailinglist   
> Subject: Re: [PATCH] Reduce logging in dbpool_mysql.c 
> Am 24.09.2016 13:57, schrieb Rene Kluwen: 
> > I don’t agree completely with your reasoning. 
> > 
> > Either you want debug information or you don’t. 
> > 
> > Enabling debug information yields a lot of information. 
> > 
> > What about if you want to debug the mysql pool usage? 
> > 
> > Still +0 from me in case it’s redundant info. 
> 
> both points are viable. I know what Donald means here. He wants DEBUG 
> level, but not cluttered with "too much deep" info. 
> 
> I would suggest wrapping the debug() line into a #ifdef DO_DEBUG which 
> CAN be defined in the header section of the source file itself. So 
> people CAN easily add it as extra DEBUG level information, but we 
> wouldn't see it in the "normal" DEBUG way. 
> 
> -- 
> Best Regards, 
> Stipe Tolj 
> 
> --- 
> Düsseldorf, NRW, Germany 
> 
> Kannel Foundation tolj.org  system architecture 
> http://www.kannel.org/  http://www.tolj.org/ 
>  
> 
> stolj at kannel.org  st at tolj.org  
> ---
> 
> 
> 
> -- 
> Donald Jackson