Skip to content
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

Added a refactoring to separate sending file logic from StaticRoute dispatcher #901

Merged
merged 4 commits into from
Jul 12, 2016
Merged

Conversation

dkuznetsov
Copy link
Contributor

What these changes does?

It separates file sending logic from StaticRoute dispatcher.

How to test your changes?

Functionally, there's no change from the user's perspective, but I've modified the unit tests to handle the change properly.

Related issue number

It should address the following question:
#839

Checklist

  • Code is written and well
  • Tests for the changes are provided
  • Documentation reflects the changes

…ispatcher. This should allow more flexibility in sending the files from request handlers manually.
@asvetlov
Copy link
Member

asvetlov commented Jun 3, 2016

Please resolve merge conflicts

@coveralls
Copy link

coveralls commented Jun 3, 2016

Coverage Status

Coverage decreased (-0.8%) to 97.43% when pulling 279887d on dkuznetsov:master into c4564ef on KeepSafe:master.

@coveralls
Copy link

coveralls commented Jun 3, 2016

Coverage Status

Coverage decreased (-0.6%) to 97.59% when pulling afd4f63 on dkuznetsov:master into c4564ef on KeepSafe:master.

@asyncio.coroutine
def _sendfile_system(self, req, resp, fobj, count):
"""
Write `count` bytes of `fobj` to `resp` starting from `offset` using

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not offset argument.

@dkuznetsov
Copy link
Contributor Author

There's a problem during Python3.4 test runs with this one.

@asvetlov
Copy link
Member

I know. You've missed yield from in FileSender.send().
I've fixed it.

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants