8000 Log offending websocket client address when no protocols overlap by bdraco · Pull Request #10564 · aio-libs/aiohttp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Log offending websocket client address when no protocols overlap #10564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2025

Conversation

bdraco
Copy link
Member
@bdraco bdraco commented Mar 16, 2025

What do these changes do?

Logs the remote address of a WebSocket client that has no overlapping protocols

Are there changes in behavior for the user?

Which client has the problem should be a bit more discoverable

Is it a substantial burden for the maintainers to support this?

no

Related issue number

closes #10563

Copy link
codspeed-hq bot commented Mar 16, 2025

CodSpeed Performance Report

Merging #10564 will not alter performance

Comparing log_offending_websocket_client (892d6c3) with master (9d4e116)

Summary

✅ 47 untouched benchmarks

@bdraco bdraco added backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot labels Mar 16, 2025
Copy link
codecov bot commented Mar 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.70%. Comparing base (55c5f1f) to head (892d6c3).
Report is 7 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10564   +/-   ##
=======================================
  Coverage   98.69%   98.70%           
=======================================
  Files         122      124    +2     
  Lines       37246    37335   +89     
  Branches     2065     2063    -2     
=======================================
+ Hits        36761    36850   +89     
  Misses        338      338           
  Partials      147      147           
Flag Coverage Δ
CI-GHA 98.58% <ø> (+<0.01%) ⬆️
OS-Linux 98.25% <ø> (+<0.01%) ⬆️
OS-Windows 96.18% <ø> (+<0.01%) ⬆️
OS-macOS 97.36% <ø> (+<0.01%) ⬆️
Py-3.10.11 97.27% <ø> (+<0.01%) ⬆️
Py-3.10.16 97.81% <ø> (+<0.01%) ⬆️
Py-3.11.11 97.90% <ø> (+<0.01%) ⬆️
Py-3.11.9 97.35% <ø> (+<0.01%) ⬆️
Py-3.12.9 98.35% <ø> (+<0.01%) ⬆️
Py-3.13.2 98.34% <ø> (+<0.01%) ⬆️
Py-3.9.13 97.15% <ø> (+<0.01%) ⬆️
Py-3.9.21 97.69% <ø> (+<0.01%) ⬆️
Py-pypy7.3.16 86.91% <ø> (+0.25%) ⬆️
VM-macos 97.36% <ø> (+<0.01%) ⬆️
VM-ubuntu 98.25% <ø> (+<0.01%) ⬆️
VM-windows 96.18% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Mar 16, 2025
@bdraco bdraco marked this pull request as ready for review March 16, 2025 21:08
@bdraco bdraco merged commit a59e74b into master Mar 16, 2025
41 checks passed
@bdraco bdraco deleted the log_offending_websocket_client branch March 16, 2025 22:20
Copy link
Contributor
patchback bot commented Mar 16, 2025

Backport to 3.11: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.11/a59e74b7b504375bc0ac3daf1dc1306d5d056d28/pr-10564

Backported as #10575

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 16, 2025
)

<!-- Thank you for your contribution! -->

## What do these changes do?

Logs the remote address of a WebSocket client that has no overlapping
protocols

## Are there changes in behavior for the user?

Which client has the problem should be a bit more discoverable

## Is it a substantial burden for the maintainers to support this?

no
## Related issue number
closes #10563

(cherry picked from commit a59e74b)
Copy link
Contributor
patchback bot commented Mar 16, 2025

Backport to 3.12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.12/a59e74b7b504375bc0ac3daf1dc1306d5d056d28/pr-10564

Backported as #10576

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Mar 16, 2025
)

<!-- Thank you for your contribution! -->

## What do these changes do?

Logs the remote address of a WebSocket client that has no overlapping
protocols

## Are there changes in behavior for the user?

Which client has the problem should be a bit more discoverable

## Is it a substantial burden for the maintainers to support this?

no
## Related issue number
closes #10563

(cherry picked from commit a59e74b)
bdraco added a commit that referenced this pull request Mar 16, 2025
…dress when no protocols overlap (#10575)

**This is a backport of PR #10564 as merged into master
(a59e74b).**



<!-- Thank you for your contribution! -->

## What do these changes do?

Logs the remote address of a WebSocket client that has no overlapping
protocols

## Are there changes in behavior for the user?

Which client has the problem should be a bit more discoverable

## Is it a substantial burden for the maintainers to support this?

no
## Related issue number
closes #10563

Co-authored-by: J. Nick Koston <nick@koston.org>
bdraco added a commit that referenced this pull request Mar 16, 2025
…dress when no protocols overlap (#10576)

**This is a backport of PR #10564 as merged into master
(a59e74b).**



<!-- Thank you for your contribution! -->

## What do these changes do?

Logs the remote address of a WebSocket client that has no overlapping
protocols

## Are there changes in behavior for the user?

Which client has the problem should be a bit more discoverable

## Is it a substantial burden for the maintainers to support this?

no
## Related issue number
closes #10563

Co-authored-by: J. Nick Koston <nick@koston.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-3.11 Trigger automatic backporting to the 3.11 release branch by Patchback robot backport-3.12 Trigger automatic backporting to the 3.12 release branch by Patchback robot bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log offending IP address when client has a protocol error
1 participant
0