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

Update web.py #892

Merged
merged 1 commit into from
Jul 12, 2016
Merged

Update web.py #892

merged 1 commit into from
Jul 12, 2016

Conversation

cr0hn
Copy link
Contributor

@cr0hn cr0hn commented Jun 1, 2016

What these changes does?

Increases the default concurrent connections accepted by aiohttp.web.run_app() function.

Asyncio, by default, configures this value to 128, but allow to increase it. The run_app() function doesn't allow it. This patch only add the parameter backlog to function definition and pass to the create_server asyncio function.

How to test your changes?

Using ab (Apache Benchmark) to test if concurrent connections was really increased.

Related issue number

I don't know if there's a issue assigned.

Checklist

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

Added backlog option to support more than 128 (default value in "create_server" function) concurrent connections.

Added backlog option to support more than 128 (default value in "create_server" function) concurrent connections.
@@ -306,7 +306,8 @@ def run_app(app, *, host='0.0.0.0', port=None,

handler = app.make_handler()
srv = loop.run_until_complete(loop.create_server(handler, host, port,
ssl=ssl_context))
ssl=ssl_context,
Copy link
Member

Choose a reason for hiding this comment

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

Please remove a trailing whitespace

@asvetlov
Copy link
Member

asvetlov commented Jun 1, 2016

A test and documentation update are required

@asvetlov asvetlov added the sprint label Jun 2, 2016
@asvetlov asvetlov merged commit 2ea5821 into aio-libs:master Jul 12, 2016
@asvetlov
Copy link
Member

Thanks

@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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants