view src/http/ngx_http_log_handler.h @ 22:8b6db3bda591 NGINX_0_1_11

nginx 0.1.11 *) Feature: the worker_priority directive. *) Change: both tcp_nopush and tcp_nodelay directives affect the transferred response. *) Bugfix: nginx did not call initgroups(). Thanks to Andrew Sitnikov and Andrei Nigmatulin. *) Change: now the ngx_http_autoindex_module shows the file size in the bytes. *) Bugfix: the ngx_http_autoindex_module returned the 500 error if the broken symlink was in a directory. *) Bugfix: the files bigger than 4G could not be transferred using sendfile. *) Bugfix: if the backend was resolved to several backends and there was an error while the response waiting then process may got caught in an endless loop. *) Bugfix: the worker process may exit with the "unknown cycle" message when the /dev/poll method was used. *) Bugfix: "close() channel failed" errors. *) Bugfix: the autodetection of the "nobody" and "nogroup" groups. *) Bugfix: the send_lowat directive did not work on Linux. *) Bugfix: the segmentation fault occurred if there was no events section in configuration. *) Bugfix: nginx could not be built on OpenBSD. *) Bugfix: the double slashes in "://" in the URI were converted to ":/".
author Igor Sysoev <http://sysoev.ru>
date Thu, 02 Dec 2004 00:00:00 +0300
parents f0b350454894
children 7ca9bdc82b3f
line wrap: on
line source


/*
 * Copyright (C) Igor Sysoev
 */


#ifndef _NGX_HTTP_LOG_HANDLER_H_INCLUDED_
#define _NGX_HTTP_LOG_HANDLER_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>


typedef u_char *(*ngx_http_log_op_pt) (ngx_http_request_t *r, u_char *buf,
                                       uintptr_t data);

#define NGX_HTTP_LOG_COPY_SHORT  (ngx_http_log_op_pt) 0
#define NGX_HTTP_LOG_COPY_LONG   (ngx_http_log_op_pt) -1

#define NGX_HTTP_LOG_ARG         (u_int) -1


typedef struct {
    size_t               len;
    ngx_http_log_op_pt   op;
    uintptr_t            data;
} ngx_http_log_op_t;


typedef struct {
    ngx_str_t            name;
    ngx_array_t         *ops;        /* array of ngx_http_log_op_t */
} ngx_http_log_fmt_t;


typedef struct {
    ngx_str_t            name;
    size_t               len;
    ngx_http_log_op_pt   op;
} ngx_http_log_op_name_t;


typedef struct {
    ngx_array_t          formats;    /* array of ngx_http_log_fmt_t */
} ngx_http_log_main_conf_t;


typedef struct {
    ngx_open_file_t     *file;
    ngx_array_t         *ops;        /* array of ngx_http_log_op_t */
} ngx_http_log_t;


typedef struct {
    ngx_array_t         *logs;       /* array of ngx_http_log_t */
    ngx_uint_t           off;        /* unsigned  off:1 */
} ngx_http_log_loc_conf_t;


extern ngx_http_log_op_name_t ngx_http_log_fmt_ops[];


#endif /* _NGX_HTTP_LOG_HANDLER_H_INCLUDED_ */