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

Bug fix: asyncio.cancel #52

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Beormund
Copy link

  • Replaced asyncio.cancel with task.cancel and now storing tasks in self.conns instead of handlers.
  • Check web server is running before shutting down and is not running before starting.
  • Removed unused self.processed_connections in webserver class.

Adds ability to specify multiple parameter names in restful urls.

Adds ability to obtain query string as a dictionary from request object.
Fix greedy matching of url root. Now _find_url_handler has to match path and params for parameterized urls.
Changed params['_param_names'] to params['_param_count']. Also made further improvements to path/param detection in _find_url_handler.
No need for this helper method to be async.
Replaced asyncio.cancel calls with task.cancel and removed unused processed_connections count. Also, self.conns[hid] = handler is now self.conns[hid] = task.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant