Welcome! Log In Create A New Profile

Advanced

Re: [patch] ngx_array zero capacity support

Maxim Dounin
September 11, 2009 01:10PM
Hello!

On Fri, Sep 11, 2009 at 04:43:00PM +0200, Peter Schüller wrote:

> Hello,
>
> attached is a patch to make the ngx_array_push() support zero-capacity
> arrays. Previously it would fail to grow the data buffer correctly (2
> * 0 = 0).

Could you please provide a use case where one should create array
without elements allocated?

Current nginx coding style suggest that arrays aren't created
until needed, and initial allocation chunk must be at least 1.

Maxim Dounin
Subject Author Posted

[patch] ngx_array zero capacity support

Peter Schüller September 11, 2009 10:48AM

Re: [patch] ngx_array zero capacity support

Maxim Dounin September 11, 2009 01:10PM

Re: [patch] ngx_array zero capacity support

Peter Schüller September 11, 2009 05:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 235
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready