~ubuntu-branches/debian/squeeze/nginx/squeeze

« back to all changes in this revision

Viewing changes to src/event/modules/ngx_epoll_module.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabio Tranchitella
  • Date: 2009-05-31 18:38:56 UTC
  • mfrom: (1.1.10 upstream) (4.1.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20090531183856-3xhvf6wd0bw5556i
Tags: 0.7.59-1
* New upstream release, first in Debian for the 0.7 branch. Among other
  issues, it also fixes the problem with wildcard dns names used with SSL.
  (Closes: #515904)
* debian/watch: updated.
* debian/postinst: fixed a bashism. (Closes: #507913)
* debian/conf/nginx.conf: removed default_type. (Closes: #509390)
* debian/control: updated Standards-Version to 3.8.1, no changes needed.
* debian/NEWS.Debian: documented the issues with
  server_names_hash_bucket_size. (Closes: #524785)

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
static ngx_int_t
144
144
ngx_epoll_init(ngx_cycle_t *cycle, ngx_msec_t timer)
145
145
{
146
 
    ngx_event_conf_t  *ecf;
147
146
    ngx_epoll_conf_t  *epcf;
148
147
 
149
 
    ecf = ngx_event_get_conf(cycle->conf_ctx, ngx_event_core_module);
150
 
 
151
148
    epcf = ngx_event_get_conf(cycle->conf_ctx, ngx_epoll_module);
152
149
 
153
150
    if (ep == -1) {
154
 
        ep = epoll_create(ecf->connections / 2);
 
151
        ep = epoll_create(cycle->connection_n / 2);
155
152
 
156
153
        if (ep == -1) {
157
154
            ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,