Commit 222fa42
committed
feat: disable TimeoutAcceptor when TSL is enabled
The TimeoutAcceptor es a custom acceptor for Axum that sets a timeput
for making a request after openning a connection.
It does not work when TSL is enabled.
This commit disables it, therefore the app does not have any way to
avoid a DDos attacks where clients just open connections without making
any request.1 parent 0a04dde commit 222fa42
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
243 | 245 | | |
244 | 246 | | |
245 | 247 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments