Skip to content

Commit

Permalink
ipv6: avoid spinning on interface set
Browse files Browse the repository at this point in the history
  • Loading branch information
lws-team committed Dec 14, 2023
1 parent 52a6ab3 commit 93ae4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/roles/http/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ _lws_vhost_init_server_af(struct vh_sock_args *a)
{
struct lws_context *cx = a->vhost->context;
struct lws_context_per_thread *pt;
int n, opt = 1, limit = 1;
int n, opt = 1, limit = 1, san = 2;
lws_sockfd_type sockfd;
struct lws *wsi;
int m = 0, is;
Expand All @@ -104,6 +104,9 @@ _lws_vhost_init_server_af(struct vh_sock_args *a)

deal:

if (!san--)
return -1;

if (a->vhost->iface) {

/*
Expand Down

0 comments on commit 93ae4cb

Please sign in to comment.