**Describe the bug**
mqtt ws crash

**To Reproduce**
this is the python code to reproduce (github do not support .py file upload)
[paho_ws_test.txt](https://github.com/nanomq/nanomq/files/15006884/paho_ws_test.txt)


**Client SDK**
paho python


ws crash
This is a GitHub Issue
repo:nanomq
owner:emqx
Title : ws crash
Issue date:

--- start body ---
**Describe the bug**
mqtt ws crash

**To Reproduce**
this is the python code to reproduce (github do not support .py file upload)
[paho_ws_test.txt](https://github.com/nanomq/nanomq/files/15006884/paho_ws_test.txt)


**Client SDK**
paho python


--- end body ---
