Skip to content

Commit 5d2010a

Browse files
authored
Merge pull request #193 from American-Institutes-for-Research/HEA-752/web_socket_updates_for_fixing_timeout_issues
Hea 752/web socket updates for fixing timeout issues
2 parents d89a793 + 2abfc1e commit 5d2010a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/common/consumers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ async def connect(self):
6060
try:
6161
self.websocket = await websockets.connect(
6262
target_url,
63-
max_size=10485760,
63+
max_size=52428800, # Increase to 50 MB
6464
ping_interval=20,
65+
open_timeout=30, # Default is 10 sec
6566
subprotocols=subprotocols if subprotocols else None,
6667
)
6768
logger.info("Connected to upstream")

0 commit comments

Comments
 (0)