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

coroutine is allowed to return web.AppRunner #5611

Merged
merged 7 commits into from Oct 28, 2021

Conversation

loven-doo
Copy link
Contributor

@loven-doo loven-doo commented Apr 12, 2021

What do these changes do?

These changes allow the configuration of web.AppRunner object inside application code. This makes possible to use custom configs of Aiohttp server (like 'max_line_size' parameters setup) in pair with Gunicorn.

Are there changes in behavior for the user?

Extends configuration flexibility

Related issue number

#2988 (reference)

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

These changes allow the configuration of web.AppRunner object inside application code. This makes possible to use custom configs of Aiohttp server (like 'max_line_size' parameters setup) in pair with Gunicorn.
Associated issue: aio-libs#2988 (reference)
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Apr 12, 2021
Depreceted style of 80 symbols width limit was needed. New style of 120 symbols for wide displays is much better
@codecov
Copy link

codecov bot commented Apr 12, 2021

Codecov Report

Merging #5611 (01ef966) into master (b8f4d70) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5611      +/-   ##
==========================================
- Coverage   93.31%   93.29%   -0.02%     
==========================================
  Files         102      102              
  Lines       30212    30218       +6     
  Branches     2708     2710       +2     
==========================================
  Hits        28192    28192              
- Misses       1843     1849       +6     
  Partials      177      177              
Flag Coverage Δ
unit 93.22% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
aiohttp/worker.py 26.98% <0.00%> (-1.35%) ⬇️

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 b8f4d70...01ef966. Read the comment docs.

@asvetlov asvetlov merged commit 9a1c862 into aio-libs:master Oct 28, 2021
@patchback
Copy link
Contributor

patchback bot commented Oct 28, 2021

Backport to 3.8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.8/9a1c86237eaf2b8ac7ebc5d72e577ab1aaf5292a/pr-5611

Backported as #6150

🤖 @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 Oct 28, 2021
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
(cherry picked from commit 9a1c862)
aio-libs-github-bot bot pushed a commit that referenced this pull request Oct 28, 2021
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
@aio-libs-github-bot
Copy link
Contributor

💚 Backport successful

The PR was backported to the following branches:

asvetlov added a commit that referenced this pull request Oct 28, 2021
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>

Co-authored-by: loven-doo <1429305+loven-doo@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
asvetlov pushed a commit that referenced this pull request Oct 28, 2021
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
(cherry picked from commit 9a1c862)

Co-authored-by: loven-doo <1429305+loven-doo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

3 participants