comparison src/event/ngx_event_pipe.c @ 16:74b1868dd3cd NGINX_0_1_8

nginx 0.1.8 *) Bugfix: in the ngx_http_autoindex_module if the long file names were in the listing. *) Feature: the "^~" modifier in the location directive. *) Feature: the proxy_max_temp_file_size directive.
author Igor Sysoev <http://sysoev.ru>
date Sat, 20 Nov 2004 00:00:00 +0300
parents 46833bd150cb
children 6f8b0dc0f8dd
comparison
equal deleted inserted replaced
15:0503cb60c4e4 16:74b1868dd3cd
12 12
13 static ngx_int_t ngx_event_pipe_read_upstream(ngx_event_pipe_t *p); 13 static ngx_int_t ngx_event_pipe_read_upstream(ngx_event_pipe_t *p);
14 static ngx_int_t ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p); 14 static ngx_int_t ngx_event_pipe_write_to_downstream(ngx_event_pipe_t *p);
15 15
16 static ngx_int_t ngx_event_pipe_write_chain_to_temp_file(ngx_event_pipe_t *p); 16 static ngx_int_t ngx_event_pipe_write_chain_to_temp_file(ngx_event_pipe_t *p);
17 ngx_inline static void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf); 17 static ngx_inline void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf);
18 ngx_inline static void ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free, 18 static ngx_inline void ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free,
19 ngx_buf_t *buf); 19 ngx_buf_t *buf);
20 ngx_inline static void ngx_event_pipe_add_free_buf(ngx_chain_t **chain, 20 static ngx_inline void ngx_event_pipe_add_free_buf(ngx_chain_t **chain,
21 ngx_chain_t *cl); 21 ngx_chain_t *cl);
22 static ngx_int_t ngx_event_pipe_drain_chains(ngx_event_pipe_t *p); 22 static ngx_int_t ngx_event_pipe_drain_chains(ngx_event_pipe_t *p);
23 23
24 24
25 ngx_int_t ngx_event_pipe(ngx_event_pipe_t *p, int do_write) 25 ngx_int_t ngx_event_pipe(ngx_event_pipe_t *p, int do_write)
674 674
675 return NGX_OK; 675 return NGX_OK;
676 } 676 }
677 677
678 678
679 ngx_inline static void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf) 679 static ngx_inline void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf)
680 { 680 {
681 ngx_buf_t *b, *next; 681 ngx_buf_t *b, *next;
682 682
683 b = buf->shadow; 683 b = buf->shadow;
684 684
704 704
705 buf->shadow = NULL; 705 buf->shadow = NULL;
706 } 706 }
707 707
708 708
709 ngx_inline static void ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free, 709 static ngx_inline void ngx_event_pipe_free_shadow_raw_buf(ngx_chain_t **free,
710 ngx_buf_t *buf) 710 ngx_buf_t *buf)
711 { 711 {
712 ngx_buf_t *s; 712 ngx_buf_t *s;
713 ngx_chain_t *cl, **ll; 713 ngx_chain_t *cl, **ll;
714 714
733 ll = &cl->next; 733 ll = &cl->next;
734 } 734 }
735 } 735 }
736 736
737 737
738 ngx_inline static void ngx_event_pipe_add_free_buf(ngx_chain_t **chain, 738 static ngx_inline void ngx_event_pipe_add_free_buf(ngx_chain_t **chain,
739 ngx_chain_t *cl) 739 ngx_chain_t *cl)
740 { 740 {
741 if (*chain == NULL) { 741 if (*chain == NULL) {
742 *chain = cl; 742 *chain = cl;
743 return; 743 return;