--
You received this message because you are subscribed to a topic in the Google Groups "mongoose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongoose-users/Rrhp7uLS7fg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
James
Hunter
JAR Technologies
Mob. +44 (0) 7738 851417
Office. +44
(0) 2890 23 33 22
JAR Technologies is a UK registered limited company, privately held. This email is from JAR Technologies Ltd. The email and any files transmitted with it are confidential and privileged and intended solely for the use of the individual or entity to whom they are addressed. If you have received the email in error please notify general....@jartechnologies.com and delete the e-mail from your system.
--
You received this message because you are subscribed to a topic in the Google Groups "mongoose-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mongoose-users/Rrhp7uLS7fg/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to mongoose-user...@googlegroups.com.
To post to this group, send email to mongoos...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongoose-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Hi,
I though I would provide the solution as others may run into this problem...
The SIGINT is causing the recv() ( in pull() ) to fail with a errno = 4 (interrupted system call), which obviously makes perfect sense. I personally have modified the pull() function to handle this error and to retry recv() if its detected.
James
Hi,
I'm using WebSocket for long lived connection between a Javascript application and my mongoose server, its all works excellently until I try to any real debugging on the server-side.
With the application running when I try to install or enable a breakpoint, I see a disconnection of the WebSocket (I use my own custom code in close_connection() to send an event to my user process.. its the only sure fire way of knowing if the websocket has gone away - or technically the TCP socket).
If the breakpoints are enabled before the application is launched there is no problems, the break-point will fire correctly and I can resume without a loss of connection.
Here's some things I notice about the problems:
1. The SIGINT signal that is called by GDB to stall all threads whilst it inserts the break-point.
2. When the breakpoint is installed the read_websocket() will exit (or break) and that will lead to the closure
3. If I breakpoint after the read_websocket() to detect the closure, and "move" the PC (Program Counter) back to the read_websocket() things continue on fine.. so the socket is not "gone", nor do I return zero from the user data event to signal the closure.
Anyone any comments on this problems, or recommendations?
Thanks,
James
--
James Hunter
JAR Technologies
Mob. +44 (0) 7738 851417
Office. +44 (0) 2890 23 33 22JAR Technologies is a UK registered limited company, privately held. This email is from JAR Technologies Ltd. The email and any files transmitted with it are confidential and privileged and intended solely for the use of the individual or entity to whom they are addressed. If you have received the email in error please notify general....@jartechnologies.com and delete the e-mail from your system.
--
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-user...@googlegroups.com.