Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

fix: declare down_task in TCPProxy to prevent AttributeError #519

Merged
merged 2 commits into from
Jan 16, 2022

Conversation

adrysn
Copy link
Member

@adrysn adrysn commented Jan 16, 2022

In some rare cases, TCPProxy raises an AttributeError in proxying app requests like the image below.
image

This PR just explicitly declare the down_task attribute in the TCPProxy class to prevent the above issue.

@adrysn adrysn self-assigned this Jan 16, 2022
@codecov
Copy link

codecov bot commented Jan 16, 2022

Codecov Report

Merging #519 (30527b2) into main (d466f9c) will decrease coverage by 1.52%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #519      +/-   ##
==========================================
- Coverage   48.42%   46.90%   -1.53%     
==========================================
  Files          53       53              
  Lines        8729     9328     +599     
==========================================
+ Hits         4227     4375     +148     
- Misses       4502     4953     +451     
Impacted Files Coverage Δ
src/ai/backend/manager/registry.py 16.90% <0.00%> (-0.02%) ⬇️
src/ai/backend/manager/models/agent.py 53.29% <0.00%> (+1.20%) ⬆️
src/ai/backend/manager/models/base.py 54.44% <0.00%> (+1.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d466f9c...30527b2. Read the comment docs.

@adrysn adrysn requested a review from achimnol January 16, 2022 07:50
@adrysn adrysn added the bug label Jan 16, 2022
@adrysn adrysn added this to the 21.03 milestone Jan 16, 2022
@achimnol achimnol merged commit 886d23a into main Jan 16, 2022
@achimnol achimnol deleted the fix/wsproxy-downtask-attr-error branch January 16, 2022 08:58
achimnol pushed a commit that referenced this pull request Jan 16, 2022
…rror (#519)

Backported-From: main (22.03)
Backported-To: 21.09
achimnol pushed a commit that referenced this pull request Jan 16, 2022
…rror (#519)

Backported-From: main (22.03)
Backported-To: 21.03
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants