aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_alloc.c3
-rw-r--r--src/core/ngx_connection.h2
-rw-r--r--src/core/ngx_hunk.h4
3 files changed, 8 insertions, 1 deletions
diff --git a/src/core/ngx_alloc.c b/src/core/ngx_alloc.c
index 1fd058b9f..3c6b4deca 100644
--- a/src/core/ngx_alloc.c
+++ b/src/core/ngx_alloc.c
@@ -14,6 +14,9 @@ void *ngx_alloc(size_t size, ngx_log_t *log)
if (p == NULL)
ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
"malloc() %d bytes failed", size);
+
+ ngx_log_debug(log, "malloc: %x" _ p);
+
return p;
}
diff --git a/src/core/ngx_connection.h b/src/core/ngx_connection.h
index 2f6d12826..cdd72bb92 100644
--- a/src/core/ngx_connection.h
+++ b/src/core/ngx_connection.h
@@ -34,7 +34,7 @@ struct ngx_connection_s {
char *addr_text;
size_t addr_textlen;
- time_t post_accept_timeout;
+ unsigned int post_accept_timeout;
};
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index 5e2a1d47e..3703db456 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -57,6 +57,9 @@ struct ngx_chain_s {
ngx_chain_t *next;
};
+#define ngx_create_temp_hunk(pool, size, before, after) \
+ ngx_get_hunk(pool, size, before, after)
+
#define ngx_add_hunk_to_chain(chain, h, pool, error) \
do { \
ngx_test_null(chain, ngx_create_chain_entry(pool), error); \
@@ -66,6 +69,7 @@ struct ngx_chain_s {
+
ngx_hunk_t *ngx_get_hunk(ngx_pool_t *pool, int size, int before, int after);