Skip to content

fix(proxy): only route GET to dfdaemon, bypass other methods#1773

Open
Looka149 wants to merge 2 commits intodragonflyoss:mainfrom
Looka149:fix/proxy-method-filter
Open

fix(proxy): only route GET to dfdaemon, bypass other methods#1773
Looka149 wants to merge 2 commits intodragonflyoss:mainfrom
Looka149:fix/proxy-method-filter

Conversation

@Looka149
Copy link
Copy Markdown

@Looka149 Looka149 commented Apr 9, 2026

Description

Only route GET requests to proxy_via_dfdaemon(). Other methods fall through to direct proxy.

Related Issue

#1772

Motivation and Context

Screenshots (if appropriate)

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.41%. Comparing base (d056c5b) to head (93c956f).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1773      +/-   ##
==========================================
- Coverage   44.53%   44.41%   -0.13%     
==========================================
  Files          91       91              
  Lines       25790    26054     +264     
==========================================
+ Hits        11485    11571      +86     
- Misses      14305    14483     +178     
Files with missing lines Coverage Δ
dragonfly-client/src/proxy/mod.rs 0.00% <ø> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gaius-qi gaius-qi added the enhancement New feature or request label Apr 10, 2026
@gaius-qi
Copy link
Copy Markdown
Member

@Looka149 There is no need to route HEAD requests via the P2P network.

@Looka149 Looka149 force-pushed the fix/proxy-method-filter branch from a6a6ed1 to 5a91c0d Compare April 10, 2026 08:05
@Looka149 Looka149 force-pushed the fix/proxy-method-filter branch from 5a91c0d to 2ba50a2 Compare April 10, 2026 08:13
@Looka149
Copy link
Copy Markdown
Author

Looka149 commented Apr 10, 2026

@gaius-qi
Thanks for the review! I updated the code to route only GET. (I also updated the PR and issue title/description.)

@Looka149 Looka149 changed the title fix(proxy): only route GET/HEAD to dfdaemon, bypass other methods fix(proxy): only route GET to dfdaemon, bypass other methods Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants