Commit 6f40518
committed
perf(http): reduce maxSockets from 50 to 10 for CLI resource management (Issue #9)
Reduced HTTP/HTTPS agent maxSockets from 50 to 10 for better resource management.
Changes:
- Updated httpAgent.maxSockets: 50 → 10
- Updated httpsAgent.maxSockets: 50 → 10
- Added explanatory comments about conservative value for CLI tools
- Prevents resource exhaustion on user machines
- Still allows reasonable parallelism for batch operations
Impact:
- Lower memory footprint
- Reduced system resource usage
- Minimal performance impact (CLI rarely needs >10 concurrent connections)
Location: src/api/deepl-client.ts:133-1471 parent 190fa0b commit 6f40518
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 | | |
56 | 66 | | |
57 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
0 commit comments