Commit 9614dea
committed
Fix client error events with unknown protocol & direct conns
Without this, direct conns would go into the unknown protocol handler if
they weren't HTTP, and would then get through to clientError if they
couldn't be forwarded, but we didn't include the normal client error
data so no useful debug info or context or error codes were provided.
We now expose useful error codes for these cases, and include all the
raw data required to typically provide a bit of a glimpse of the raw
data that's being sent here.
This shouldn't really come up - almost all unknown protocol handling
should really use SOCKS or CONNECT tunnels to avoid this - but when it
does it's good to get proper info.1 parent 7c4319a commit 9614dea
1 file changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | | - | |
268 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
269 | 276 | | |
270 | 277 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
274 | 282 | | |
275 | 283 | | |
276 | 284 | | |
277 | | - | |
| 285 | + | |
278 | 286 | | |
279 | 287 | | |
280 | 288 | | |
| |||
0 commit comments