John Lima
2013-10-29 15:58:51 UTC
Hello,
Has anyone tried implementing websocket ping-pong messages on top of
mongoose websockets?
I'd like to avoid adding a new thread per connection to send ping packets
and because my list of active connections isn't in a threadsafe
datastructure, it doesn't seem feasible to send the pings for all
connections from one thread.
My current idea is to rejigger another thread that handles the connection
list data structure to occasionally stop its normal operation and sing the
ping packets, but this doesn't feel like a very good solution.
Any suggestions?
Thanks in advance!
John
Has anyone tried implementing websocket ping-pong messages on top of
mongoose websockets?
I'd like to avoid adding a new thread per connection to send ping packets
and because my list of active connections isn't in a threadsafe
datastructure, it doesn't seem feasible to send the pings for all
connections from one thread.
My current idea is to rejigger another thread that handles the connection
list data structure to occasionally stop its normal operation and sing the
ping packets, but this doesn't feel like a very good solution.
Any suggestions?
Thanks in advance!
John
--
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-users+***@googlegroups.com.
To post to this group, send email to mongoose-***@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-users+***@googlegroups.com.
To post to this group, send email to mongoose-***@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.