Repository navigation
Description
httpx version:
v1.7.4 (latest)
Current Behavior:
After interrupting httpx with CTRL+C, resuming with r resume.cfg does resume execution, but some URLs that were not fully processed before interruption are skipped. The resumed run does not reprocess all remaining targets, resulting in missing output compared to normal run.
Expected Behavior:
Running httpx -r resume.cfg should resume processing the remaining targets from the resume file and produce output accordingly.
Steps To Reproduce:
-
Run
httpxwith input from stdin:cat subs.txt | httpx -
Interrupt execution using
CTRL+Cafter partial output. -
Observe that
resume.cfgis created. -
Attempt to resume execution:
cat subs.txt | httpx -r resume.cfg -
Observer that some targets are not present compared to the output in normal run
Anything else:
Full terminal output:
ayux@pop-os:/tmp$ cat subs.txt | httpx
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.7.4 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://example.com
https://test.io
https://google.com
https://youtube.com
ayux@pop-os:/tmp$ cat subs.txt | httpx
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.7.4 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
https://example.com
https://test.io
^C[INF] CTRL+C pressed: Exiting
[INF] Creating resume file: resume.cfg
[ble: exit 1]
ayux@pop-os:/tmp$ cat subs.txt | httpx -r resume.cfg
__ __ __ _ __
/ /_ / /_/ /_____ | |/ /
/ __ \/ __/ __/ __ \| /
/ / / / /_/ /_/ /_/ / |
/_/ /_/\__/\__/ .___/_/|_|
/_/
projectdiscovery.io
[INF] Current httpx version v1.7.4 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enablePossible Cause (Speculation):
It appears that resume.cfg may be written before the tool fully validates or flushes the current processing state (including remaining targets and/or output state). As a result, the resume file may be incomplete or inconsistent, causing httpx -r resume.cfg to start without any remaining work to process.
Activity
coderabbitai commentedon Dec 27, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
ayuxsec commentedon Jan 4, 2026
From my additional tests it seems that even the resume logic is broken apart from incorrectly writing wrong index & input in(mb the flag for resume isresume.cfgfile-resumenot-r)dogancanbakir commentedon Feb 2, 2026
/bounty $75
algora-pbc commentedon Feb 2, 2026
💎 $75 bounty • ProjectDiscovery Bounty Available
How to Participate:
/attempt #2345on this issue. Multiple participants can attempt, but only the first to submit a complete, mergeable solution will receive the reward./claim #2345in the PR body.Thank you for contributing to projectdiscovery/httpx and helping us democratize security!
PR Requirements
Your PR must include the following. PRs that don't meet these requirements may not be reviewed and could be closed.
Proposed Changes
Describe the overall picture of your modifications to help maintainers understand the pull request.
Proof
Demonstrate your changes work. Include before/after examples, screenshots, or terminal output showing the fix/feature in action.
Checklist
dev)Add a bounty • Share on socials
fix: ensure resume.cfg is written after in-flight work completes
Simplereally commentedon Feb 2, 2026
/attempt #2345
erdogan98 commentedon Feb 2, 2026
/attempt #2345
fix: prevent resume from skipping in-flight items
fix: ensure resume.cfg captures complete processing state
Simplereally commentedon Feb 3, 2026
Submitted PR #2391 with complete fix for resume state capture issue.
The fix ensures resume.cfg is written with the last completed output rather than the currently processing item, preventing targets from being skipped on resume.
dogancanbakir commentedon Feb 3, 2026
Hey contributors! Please make sure your PR follows the PR template and includes proof that your changes work (before/after examples, screenshots, or terminal output). Reviewer time is limited! Incomplete PRs may be closed without review. Thanks!
assakafpix commentedon Feb 4, 2026
/attempt #2345
fix: ensure resume.cfg captures last completed item state
ohmygod20260203 commentedon Feb 5, 2026
/attempt #2345
I've submitted PR #2394 with a fix for this issue.
The fix adds separate tracking for the last completed item (vs the currently processing item) to ensure resume.cfg only reflects items that have been fully queued for processing. This prevents in-progress items from being skipped when resuming.
energypantry commentedon Feb 7, 2026
Hi! I can take this on with a fast turnaround. Do you accept USDC/USDT (any EVM chain) for payment? If yes, I can start immediately.
energypantry commentedon Feb 7, 2026
Hi! I can take this on with a fast turnaround. Do you accept USDC/USDT (any EVM chain) for payment? If yes, I can start immediately.
thecafetron-ctrl commentedon Feb 8, 2026
/attempt
I’m taking this on. Will add a unit/integration test around resume.cfg write timing and ensure it is only written after successful validation / after all workers flush.
thecafetron-ctrl commentedon Feb 8, 2026
/attempt #2345\n\nPlan: ensure resume.cfg is written only after validation/flush, add regression test using temp dir + controlled writer to avoid partial writes.
algora-pbc commentedon Feb 9, 2026
@assakafpix: You've been awarded a $75 by ProjectDiscovery! 👉 Complete your Algora onboarding to collect the bounty.
algora-pbc commentedon Feb 9, 2026
🎉🎈 @assakafpix has been awarded $75 by ProjectDiscovery! 🎈🎊
fix(resume): atomic resume file save using tempfile and rename for pr…