C++ module
Rajalakshmi Iyer
rajalakshmi.iyer at blis.com
Thu Jun 16 04:18:34 UTC 2016
Thanks everyone.
I have been able to compile a C++ module fine. But I am primarily trying to figure out if it's safe to use features like STL containers or Boost libraries within an Nginx module.
I am asking this because if I try to allocate an std::string within say the module context, I see a segmentation fault. I assume it's because of the Nginx pool mechanism?
> On 16 Jun 2016, at 02:31, Hung Nguyen <hungnv at opensource.com.vn> wrote:
>
> Hello,
>
> Nginx comes with a demo module written in C++ in source code
>
> Sent from my iPhone
>
>> On Jun 16, 2016, at 3:49 AM, Piotr Sikora <piotrsikora at google.com> wrote:
>>
>> Hey Raj,
>> it is, take a look at ngx_brotli [1] and ngx_pagespeed [2].
>>
>> [1] https://github.com/google/ngx_brotli
>> [2] https://github.com/pagespeed/ngx_pagespeed
>>
>> Best regards,
>> Piotr Sikora
>>
>>> On Wed, Jun 15, 2016 at 8:27 AM, Rajalakshmi Iyer <rajalakshmi.iyer at blis.com> wrote:
>>> Hello,
>>>
>>> Just wanted to check if it is possible to write NGINX modules in C++ that makes extensive use of the standard template library (STL)? If so, what are the things that one needs to be careful about?
>>>
>>> Thanks in advance,
>>> Raj
>>>
>>>
>>> This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Blis Ltd, a company registered in England and Wales with registered number 06455773. Its registered office is 5th Floor, 85 Tottenham Court Road, London, W1T 4TQ, United Kingdom.
>>>
>>> If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error.
>>>
>>> _______________________________________________
>>> nginx-devel mailing list
>>> nginx-devel at nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
>>
>> _______________________________________________
>> nginx-devel mailing list
>> nginx-devel at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-devel
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel
--
This email and any attachments to it may be confidential and are
intended solely for the use of the individual to whom it is addressed. Any
views or opinions expressed are solely those of the author and do not
necessarily represent those of Blis Ltd, a company registered in England
and Wales with registered number 06455773. Its registered office is 5th
Floor, 85 Tottenham Court Road, London, W1T 4TQ, United Kingdom.
If you are not the intended recipient of this email, you must neither take
any action based upon its contents, nor copy or show it to anyone. Please
contact the sender if you believe you have received this email in error.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20160616/8a18b157/attachment.html>
More information about the nginx-devel
mailing list