error 10054 when a browser is closed and closing a connection #3153
-
I am using v 7.2 and am fairly new to mongoose.c. When my client closes, resulting in error 10054, I expected/hoped to see an MG_EV_CLOSE message and be able to clean up memory tied to that connection/tab. Instead, I am finding I need to write a more robust inactivity routine to best detect when a tab or browser is closed. Are there any techniques one can share about how to deal with cleaning up stateful objects tied to orphaned connections that don't send a MG_EV_CLOSE. My inactivity timeout eventually elapses, but seems like we should be able to reclaim that memory sooner. I found this and was curious how to get more information about bug #1529 and why this line was commented out. static void iolog(struct mg_connection *c, char *buf, long n, bool r) {
} Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We do not offer support for previous releases unless you are a paying customer, in which case you need to contact Support as per your contract. You are 16 releases behind |
Beta Was this translation helpful? Give feedback.
We do not offer support for previous releases unless you are a paying customer, in which case you need to contact Support as per your contract. You are 16 releases behind
BTW, we never used error numbers.