Mercurial > hg > nginx
comparison src/event/ngx_event.h @ 5115:a29c574d61fa
Status: introduced the "ngx_stat_waiting" counter.
And corresponding variable $connections_waiting was added.
Previously, waiting connections were counted as the difference between
active connections and the sum of reading and writing connections.
That made it impossible to count more than one request in one connection
as reading or writing (as is the case for SPDY).
Also, we no longer count connections in handshake state as waiting.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 15 Mar 2013 20:00:49 +0000 |
parents | 9ee20e074a2e |
children | b95e70ae6bcd |
comparison
equal
deleted
inserted
replaced
5114:a46c1cfe7263 | 5115:a29c574d61fa |
---|---|
509 extern ngx_atomic_t *ngx_stat_handled; | 509 extern ngx_atomic_t *ngx_stat_handled; |
510 extern ngx_atomic_t *ngx_stat_requests; | 510 extern ngx_atomic_t *ngx_stat_requests; |
511 extern ngx_atomic_t *ngx_stat_active; | 511 extern ngx_atomic_t *ngx_stat_active; |
512 extern ngx_atomic_t *ngx_stat_reading; | 512 extern ngx_atomic_t *ngx_stat_reading; |
513 extern ngx_atomic_t *ngx_stat_writing; | 513 extern ngx_atomic_t *ngx_stat_writing; |
514 extern ngx_atomic_t *ngx_stat_waiting; | |
514 | 515 |
515 #endif | 516 #endif |
516 | 517 |
517 | 518 |
518 #define NGX_UPDATE_TIME 1 | 519 #define NGX_UPDATE_TIME 1 |