Commit 7c2ebe3
authored
dynamic_modules: use addStreamFilter for dynamic_modules http filter callback (envoyproxy#38583)
Using addStreamDecoderFilter and
addStreamEncoderFilter will cause filter to be added twice in filter
manager, so that callback like onStreamComplete will be called twice for
one filter. Using addStreamFilter can make sure that callback will only
be called once for one filter.
Signed-off-by: Zhaoyang Li <zhaoyli311@gmail.com>1 parent ca57308 commit 7c2ebe3
2 files changed
Lines changed: 4 additions & 8 deletions
File tree
- source/extensions/filters/http/dynamic_modules
- test/extensions/dynamic_modules/http
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | | - | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
110 | | - | |
111 | | - | |
| 108 | + | |
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
| |||
0 commit comments