Commit 7df020e
committed
refactor(http): replace reflection with @VisibleForTesting accessor and fix comment attribution
Add getMaxRequestSize()/setMaxRequestSize() to HttpService so tests
use compile-safe accessors instead of Field.setAccessible(true).
Correct comments attributing exception swallowing to RateLimiterServlet
when it is actually jsonrpc4j that silently absorbs the BadMessageException.1 parent 64ad6df commit 7df020e
2 files changed
Lines changed: 18 additions & 9 deletions
File tree
- framework/src
- main/java/org/tron/common/application
- test/java/org/tron/core/jsonrpc
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
35 | 46 | | |
36 | 47 | | |
37 | 48 | | |
| |||
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
| 1112 | + | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
| 1118 | + | |
| 1119 | + | |
1122 | 1120 | | |
1123 | 1121 | | |
1124 | 1122 | | |
| |||
1151 | 1149 | | |
1152 | 1150 | | |
1153 | 1151 | | |
1154 | | - | |
| 1152 | + | |
1155 | 1153 | | |
1156 | 1154 | | |
1157 | 1155 | | |
| |||
1162 | 1160 | | |
1163 | 1161 | | |
1164 | 1162 | | |
1165 | | - | |
| 1163 | + | |
1166 | 1164 | | |
1167 | 1165 | | |
1168 | | - | |
| 1166 | + | |
1169 | 1167 | | |
1170 | 1168 | | |
1171 | 1169 | | |
| |||
0 commit comments