[OpenSIPS-Users] Huge DB query causes pv_printf error

Patrick Wakano pwakano at gmail.com
Tue Jul 14 15:14:53 CEST 2015


Great! Thanks Razvan!
So I don't need these changes?

- pvar.c => #define PV_PRINT_BUF_SIZE 2048
- modules/avpops/avpops_impl.c:#define AVP_PRINTBUF_SIZE 2048
- modules/avpops/avpops_impl.c:#define STR_BUF_SIZE 2048

Patrick


On Tue, Jul 14, 2015 at 3:58 AM, Răzvan Crainea <razvan at opensips.org> wrote:

>  Hi, Patrick!
>
> You should increase the avpops buffer size by using the buf_size
> parameter[1].
>
> [1] http://www.opensips.org/html/docs/modules/1.11.x/avpops.html#id293698
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 07/13/2015 09:50 PM, Patrick Wakano wrote:
>
>  Hello List,
>
> In my script I am doing a very huge SQL query using avp_db_query() which is causing me this error:
>
> ERROR:core:pv_printf: no more space for spec value
> ERROR:core:pv_printf: buffer overflow -- increase the buffer size from [1023]...
> ERROR:avpops:ops_dbquery_avps: cannot print the query
>
> I already tried what was pointed in this tread (http://opensips.org/pipermail/devel/2008-January/011344.html) but with no luck... The problem remains....
>
> Is there any other place where I should increase some buffer?
>
> I am using version 1.11.3
>
> Regards,
>
> Patrick
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150714/319509a4/attachment.htm>


More information about the Users mailing list