Skip to content

Update web.py#892

Merged
asvetlov merged 1 commit intoaio-libs:masterfrom
cr0hn:patch-1
Jul 12, 2016
Merged

Update web.py#892
asvetlov merged 1 commit intoaio-libs:masterfrom
cr0hn:patch-1

Conversation

@cr0hn
Copy link
Copy Markdown
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.
handler = app.make_handler()
srv = loop.run_until_complete(loop.create_server(handler, host, port,
ssl=ssl_context))
ssl=ssl_context,
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Thanks

@lock
Copy link
Copy Markdown

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