mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
per family close on IP change
This commit is contained in:
1 parent
324f59abc5
commit
e8bb01b547
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -9976,7 +9976,7 @@ static void onstatechange(struct mg_tcpip_if *ifp) {
|
||||
if (ifp->is_ip_changed) {
|
||||
struct mg_connection *c;
|
||||
for (c = ifp->mgr->conns; c != NULL; c = c->next) {
|
||||
if (!c->is_listening && !c->is_udp) c->is_closing = 1;
|
||||
if (!c->is_listening && !c->is_udp && !c->loc.is_ip6) c->is_closing = 1;
|
||||
}
|
||||
ifp->is_ip_changed = false;
|
||||
}
|
||||
@@ -10696,7 +10696,7 @@ static void onstate6change(struct mg_tcpip_if *ifp) {
|
||||
if (ifp->is_ip6_changed) {
|
||||
struct mg_connection *c;
|
||||
for (c = ifp->mgr->conns; c != NULL; c = c->next) {
|
||||
if (!c->is_listening && !c->is_udp) c->is_closing = 1;
|
||||
if (!c->is_listening && !c->is_udp && c->loc.is_ip6) c->is_closing = 1;
|
||||
}
|
||||
ifp->is_ip6_changed = false;
|
||||
}
|
||||
|
||||
+2
-2
@@ -424,7 +424,7 @@ static void onstatechange(struct mg_tcpip_if *ifp) {
|
||||
if (ifp->is_ip_changed) {
|
||||
struct mg_connection *c;
|
||||
for (c = ifp->mgr->conns; c != NULL; c = c->next) {
|
||||
if (!c->is_listening && !c->is_udp) c->is_closing = 1;
|
||||
if (!c->is_listening && !c->is_udp && !c->loc.is_ip6) c->is_closing = 1;
|
||||
}
|
||||
ifp->is_ip_changed = false;
|
||||
}
|
||||
@@ -1144,7 +1144,7 @@ static void onstate6change(struct mg_tcpip_if *ifp) {
|
||||
if (ifp->is_ip6_changed) {
|
||||
struct mg_connection *c;
|
||||
for (c = ifp->mgr->conns; c != NULL; c = c->next) {
|
||||
if (!c->is_listening && !c->is_udp) c->is_closing = 1;
|
||||
if (!c->is_listening && !c->is_udp && c->loc.is_ip6) c->is_closing = 1;
|
||||
}
|
||||
ifp->is_ip6_changed = false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user