Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Hi, I have a question about closing websocket! #4

Open
liu2guang opened this issue Jan 7, 2019 · 0 comments
Open

Hi, I have a question about closing websocket! #4

liu2guang opened this issue Jan 7, 2019 · 0 comments

Comments

@liu2guang
Copy link

In the state machine of rws_socket_work_th_func, it will try to send data in idle state (through the rws_socket_idle_send function). Within this function, it will eventually call the rws_socket_send function. But once the function fails to send, it will call the rws_socket_close function to close once. You will then change the state machine to COMMAND_INFORM_DISCONNECTED, which will eventually be turned off again in rws_socket_work_th_func!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant