You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OS independent type Poller does not implement the Close method that can be found in type Epoll and Kqueue (although) it isn't implemented for the last.
I am writing a Websocket tracker using gobwas/ws and this package, and I want to implement a graceful shutdown to my server. As of now, I am calling poller.Stop on all Desc then closing connections, but it represents alot of syscalls, being able to call Close once would be easier and cleaner to stop the background loop.
Also, could you please consider implementing Close for the Kqueue implementation ?
The OS independent type
Poller
does not implement theClose
method that can be found in typeEpoll
andKqueue
(although) it isn't implemented for the last.I am writing a Websocket tracker using gobwas/ws and this package, and I want to implement a graceful shutdown to my server. As of now, I am calling
poller.Stop
on allDesc
then closing connections, but it represents alot of syscalls, being able to callClose
once would be easier and cleaner to stop the background loop.Also, could you please consider implementing
Close
for the Kqueue implementation ?Thanks
@gobwas
The text was updated successfully, but these errors were encountered: