Skip to content

Commit

Permalink
feat: detect full epoll support in sub client
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Nov 18, 2024
1 parent f0eb230 commit 93d007a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ func NewGraphQLSubscriptionClient(httpClient, streamingClient *http.Client, engi
netPollConfig: op.netPollConfiguration,
}
if op.netPollConfiguration.Enable {

if netpoll.Supported() != nil {
return client
}

client.netPollState = &netPollState{
connections: make(map[int]*connection),
triggers: make(map[uint64]int),
Expand All @@ -229,6 +234,7 @@ func NewGraphQLSubscriptionClient(httpClient, streamingClient *http.Client, engi
go client.runNetPoll(engineCtx)
}
}

return client
}

Expand Down

0 comments on commit 93d007a

Please sign in to comment.