mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-30 08:29:02 +02:00
fixed initial pool size
This commit is contained in:
parent
ebd019e4af
commit
eda826a386
|
@ -237,7 +237,7 @@ ngx_rtmp_init_session(ngx_connection_t *c)
|
||||||
|
|
||||||
size = NGX_RTMP_HANDSHAKE_SIZE + 1;
|
size = NGX_RTMP_HANDSHAKE_SIZE + 1;
|
||||||
s->in_chunk_size = NGX_RTMP_DEFAULT_CHUNK_SIZE;
|
s->in_chunk_size = NGX_RTMP_DEFAULT_CHUNK_SIZE;
|
||||||
s->in_pool = ngx_create_pool(2 * size + sizeof(ngx_pool_t), c->log);
|
s->in_pool = ngx_create_pool(4096/*2 * size + sizeof(ngx_pool_t)*/, c->log);
|
||||||
|
|
||||||
/* start handshake */
|
/* start handshake */
|
||||||
b = &s->hs_in_buf;
|
b = &s->hs_in_buf;
|
||||||
|
|
|
@ -18,16 +18,6 @@
|
||||||
#define ngx_rtmp_ref_put(b) \
|
#define ngx_rtmp_ref_put(b) \
|
||||||
--ngx_rtmp_ref(b)
|
--ngx_rtmp_ref(b)
|
||||||
|
|
||||||
/*
|
|
||||||
#define ngx_rtmp_ref_set(b, v) \
|
|
||||||
*(int*)&((b)->tag) = v
|
|
||||||
|
|
||||||
#define ngx_rtmp_ref_get(b) \
|
|
||||||
(++*(int*)&((b)->tag))
|
|
||||||
|
|
||||||
#define ngx_rtmp_ref_put(b) \
|
|
||||||
(--*(int*)&((b)->tag))
|
|
||||||
*/
|
|
||||||
|
|
||||||
ngx_chain_t *
|
ngx_chain_t *
|
||||||
ngx_rtmp_alloc_shared_buf(ngx_rtmp_core_srv_conf_t *cscf)
|
ngx_rtmp_alloc_shared_buf(ngx_rtmp_core_srv_conf_t *cscf)
|
||||||
|
|
Loading…
Reference in a new issue