Two websocket connections at the same time


Michael Federer
 

Hi all,

I try to open two websocket connections and keep them connected to a FastAPI server at the same time. Establishing the first websocket connection seems to work. But establishing the second connection stucks immediately after the socket for the HTTP handshake was created successfully. The second websocket_connect seems to fail.

Here some details.
1st connection:
- HTTP socket id: 0
- Websocket id: 1

2nd connection:
- HTTP socket id: 2
- Websocket id: -2 (looks like an error code)

Some further details:
- Zephyr version: 2.5.99

Maybe my prj.conf lacks a necessary entry.
Does anyone have experience with multiple websockets at the same time? I really appreciate your help.

Cheers, Mike



Join users@lists.zephyrproject.org to automatically receive all group messages.