You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a scenario we need to create many connection in Linux, but the error happens:
Here is simple code to reproduce:
import websocket
def create_client(idx):
ws = websocket.create_connection(
url="wss://xxxxxx",
subprotocols=["xxx"],
)
print(f"{idx} done")
return ws
ws_list = [create_client(i) for i in range(10000)]
for item in ws_list:
item.close()
print("done")
The error hint is not clear so we don't know what's wrong. Finally, we infer that we may meet the file descriptor limit in Linux. Then we use ulimit -n xxx to increase the limit and the issue is fixed.
Here is aiohttp error hint in same scenario which is more clear:
So I expect websocket-client could promote the error hint in this scenario.
The text was updated successfully, but these errors were encountered:
There is a scenario we need to create many connection in Linux, but the error happens:
Here is simple code to reproduce:
The error hint is not clear so we don't know what's wrong. Finally, we infer that we may meet the file descriptor limit in Linux. Then we use
ulimit -n xxx
to increase the limit and the issue is fixed.Here is
aiohttp
error hint in same scenario which is more clear:So I expect websocket-client could promote the error hint in this scenario.
The text was updated successfully, but these errors were encountered: