forked from session-replay-tools/nginx-hmux-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hmux.patch
33 lines (31 loc) · 939 Bytes
/
hmux.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/src/event/ngx_event_pipe.c 2009-08-28 16:12:35.000000000 +0800
+++ b/src/event/ngx_event_pipe.c 2011-04-18 15:22:39.302414042 +0800
@@ -312,22 +312,19 @@
if (n >= size) {
cl->buf->last = cl->buf->end;
-
- /* STUB */ cl->buf->num = p->num++;
-
- if (p->input_filter(p, cl->buf) == NGX_ERROR) {
- return NGX_ABORT;
- }
-
n -= size;
- ln = cl;
- cl = cl->next;
- ngx_free_chain(p->pool, ln);
-
} else {
cl->buf->last += n;
n = 0;
}
+ /* STUB */ cl->buf->num = p->num++;
+
+ if (p->input_filter(p, cl->buf) == NGX_ERROR) {
+ return NGX_ABORT;
+ }
+ ln = cl;
+ cl = cl->next;
+ ngx_free_chain(p->pool, ln);
}
if (cl) {