Commit 3014a65
committed
feat: add comprehensive context diagnostic logging
Add detailed context status logging throughout scan execution pipeline to
diagnose timeout issues:
- Log context deadline and remaining time before Nmap execution
- Check context cancellation status before each Nmap.Scan() call
- Log context status before and during testing phase
- Verify parent context health after discovery phase
This will help identify whether context timeout is the root cause of
Nmap failures or if there's context contamination/replacement happening.
Related to adversarial collaboration investigation of 'context deadline
exceeded' errors despite parent context having time remaining.1 parent 63f8bb8 commit 3014a65
2 files changed
Lines changed: 41 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
411 | 425 | | |
412 | 426 | | |
413 | 427 | | |
| |||
1209 | 1223 | | |
1210 | 1224 | | |
1211 | 1225 | | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1212 | 1238 | | |
1213 | 1239 | | |
1214 | 1240 | | |
| |||
1226 | 1252 | | |
1227 | 1253 | | |
1228 | 1254 | | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
1229 | 1268 | | |
1230 | 1269 | | |
1231 | 1270 | | |
| |||
0 commit comments