Opened 9 years ago

Closed 9 years ago

#25970 closed New feature (duplicate)

Support simultaneous open connections in LiveServerTestCase

Reported by: Julien Pivotto Owned by: nobody
Component: Testing framework Version: 1.9
Severity: Normal Keywords: websockets
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django-websockets-redis is a popular library to use websockets and Django. However the LiveServerTestCase does not work with it because it is single threaded.

In their doc (http://django-websocket-redis.readthedocs.org/en/latest/testing.html):

Currently it is not possible to simulate more than one client at a time. Django’s built in LiveServerTestCase can not handle more than one simultaneous open connection, and thus more sophisticated tests with more than one active Websockets are not possible.

We should make that possible and handle simultaneous open connections

Change History (3)

comment:1 by Julien Pivotto, 9 years ago

Summary: Support MultiThreading in LiveServerTestCaseSupport simultaneous open connections in LiveServerTestCase

comment:2 by Tim Graham, 9 years ago

I believe this was previously wontfixed in #20238 as there wasn't sufficient justification at the time. Maybe things have changed since then, but as long as Django itself doesn't use the functionality, I'm unsure why this couldn't live in the third-party library. Any idea how complex the patch would be?

comment:3 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top