comparison src/http/modules/proxy/ngx_http_proxy_handler.c @ 208:0b67be7d4489

nginx-0.0.1-2003-12-08-23:48:12 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 08 Dec 2003 20:48:12 +0000
parents 8dee38ea9117
children 70e1c7d2b83d
comparison
equal deleted inserted replaced
207:6e0fef527732 208:0b67be7d4489
382 void ngx_http_proxy_busy_lock_handler(ngx_event_t *rev) 382 void ngx_http_proxy_busy_lock_handler(ngx_event_t *rev)
383 { 383 {
384 ngx_connection_t *c; 384 ngx_connection_t *c;
385 ngx_http_request_t *r; 385 ngx_http_request_t *r;
386 ngx_http_proxy_ctx_t *p; 386 ngx_http_proxy_ctx_t *p;
387 387
388 ngx_log_debug(rev->log, "busy lock"); 388 ngx_log_debug(rev->log, "busy lock");
389 389
390 c = rev->data; 390 c = rev->data;
391 r = c->data; 391 r = c->data;
392 p = ngx_http_get_module_ctx(r, ngx_http_proxy_module); 392 p = ngx_http_get_module_ctx(r, ngx_http_proxy_module);
592 592
593 if (p->state->expired == 0) { 593 if (p->state->expired == 0) {
594 *buf++ = '-'; 594 *buf++ = '-';
595 595
596 } else { 596 } else {
597 buf += ngx_snprintf(buf, NGX_TIME_LEN, TIME_T_FMT, p->state->expired); 597 buf += ngx_snprintf(buf, NGX_TIME_T_LEN, TIME_T_FMT, p->state->expired);
598 } 598 }
599 599
600 *buf++ = '/'; 600 *buf++ = '/';
601 601
602 if (p->state->bl_time == 0) { 602 if (p->state->bl_time == 0) {
603 *buf++ = '-'; 603 *buf++ = '-';
604 604
605 } else { 605 } else {
606 buf += ngx_snprintf(buf, NGX_TIME_LEN, TIME_T_FMT, p->state->bl_time); 606 buf += ngx_snprintf(buf, NGX_TIME_T_LEN, TIME_T_FMT, p->state->bl_time);
607 } 607 }
608 608
609 *buf++ = '/'; 609 *buf++ = '/';
610 610
611 *buf++ = '*'; 611 *buf++ = '*';
633 633
634 if (p->state->reason < NGX_HTTP_PROXY_CACHE_XAE) { 634 if (p->state->reason < NGX_HTTP_PROXY_CACHE_XAE) {
635 *buf++ = '-'; 635 *buf++ = '-';
636 636
637 } else { 637 } else {
638 buf += ngx_snprintf(buf, NGX_TIME_LEN, TIME_T_FMT, p->state->expires); 638 buf += ngx_snprintf(buf, NGX_TIME_T_LEN, TIME_T_FMT, p->state->expires);
639 } 639 }
640 640
641 *buf++ = ' '; 641 *buf++ = ' ';
642 *buf++ = '*'; 642 *buf++ = '*';
643 643