mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ipv6: avoid spinning on interface set
https://github.com/warmcat/libwebsockets/issues/3028
This commit is contained in:
parent
52a6ab357e
commit
93ae4cb628
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,7 @@ _lws_vhost_init_server_af(struct vh_sock_args *a)
|
||||||
{
|
{
|
||||||
struct lws_context *cx = a->vhost->context;
|
struct lws_context *cx = a->vhost->context;
|
||||||
struct lws_context_per_thread *pt;
|
struct lws_context_per_thread *pt;
|
||||||
int n, opt = 1, limit = 1;
|
int n, opt = 1, limit = 1, san = 2;
|
||||||
lws_sockfd_type sockfd;
|
lws_sockfd_type sockfd;
|
||||||
struct lws *wsi;
|
struct lws *wsi;
|
||||||
int m = 0, is;
|
int m = 0, is;
|
||||||
|
@ -104,6 +104,9 @@ _lws_vhost_init_server_af(struct vh_sock_args *a)
|
||||||
|
|
||||||
deal:
|
deal:
|
||||||
|
|
||||||
|
if (!san--)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (a->vhost->iface) {
|
if (a->vhost->iface) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue