Skip to content

Commit

Permalink
Delete warning about close_old_connections (#1500)
Browse files Browse the repository at this point in the history
close_old_connections is no longer used in the example, so this warning
is more confusing than helpful.
  • Loading branch information
LilyFoote committed Sep 18, 2020
1 parent f3df140 commit e60aa0f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions docs/topics/authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,6 @@ query string and uses that:
return await inner(receive, send)
.. warning::

Right now you will need to call ``close_old_connections()`` before any
database code you call inside a middleware's scope-setup method to ensure
you don't leak idle database connections. We hope to call this automatically
in future versions of Channels.

The same principles can be applied to authenticate over non-HTTP protocols;
for example, you might want to use someone's chat username from a chat protocol
to turn it into a user.
Expand Down

0 comments on commit e60aa0f

Please sign in to comment.