-
Notifications
You must be signed in to change notification settings - Fork 7
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
[WIP] Use WebSockets for uploading/downloading files and directories (using callbacks). #954
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, the design is clear and readable.
Please go ahead.
This pull request introduces 1 alert when merging eacd820 into 8a55413 - view on LGTM.com new alerts:
|
This pull request fixes 7 alerts when merging 9d8288c into 8a55413 - view on LGTM.com fixed alerts:
|
Tests are failed because the API is tested with a small builtin storage server, which just does not support WebSocket operations yet. |
This pull request introduces 2 alerts when merging 1e96567 into 6089723 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 7a2ac0b into cf1a4ca - view on LGTM.com new alerts:
|
This pull request fixes 7 alerts when merging 4a2fe81 into cf1a4ca - view on LGTM.com fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #954 +/- ##
=========================================
Coverage ? 91.69%
=========================================
Files ? 37
Lines ? 4518
Branches ? 737
=========================================
Hits ? 4143
Misses ? 254
Partials ? 121
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #954 +/- ##
==========================================
- Coverage 92.09% 90.57% -1.53%
==========================================
Files 37 37
Lines 4251 4635 +384
Branches 642 728 +86
==========================================
+ Hits 3915 4198 +283
- Misses 227 321 +94
- Partials 109 116 +7
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 57ee5cc into 9d6c96f - view on LGTM.com new alerts:
|
Some benchmarking results. Master: Current PR: See also #958. |
This pull request introduces 1 alert when merging 8482ac5 into 5bf8ff6 - view on LGTM.com new alerts:
|
Super impressive numbers! |
This pull request introduces 1 alert when merging a9a188c into 5bf8ff6 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ffbb7bf into 4548126 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 1aa7b68 into f5148b9 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8445153 into f5148b9 - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't follow when WS client shuts down the connection after sending all data?
Who calls "await ws.close()"?
Using async generator handlers is wise BTW
exc: BaseException | ||
if "errno" in payload: | ||
exc = OSError( | ||
errno.__dict__.get(payload["errno"], payload["errno"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I don't follow: is payload["errno"]
an int or str abbreviation?
Aha, I see |
This pull request introduces 5 alerts when merging 8452b14 into a2a1cb7 - view on LGTM.com new alerts:
|
Closes #929.