olliNiinivaara / GuildenStern

Modular multithreading HTTP/1.1 + WebSocket server framework
MIT License
80 stars 7 forks source link

dispatcher setsockopt fails may not cause unregister file descriptor #9

Closed bung87 closed 1 year ago

bung87 commented 1 year ago

https://github.com/olliNiinivaara/GuildenStern/blob/0c2a2ae9a9b86121eb971828850c0ae37c03babe/src/guildenstern/dispatcher.nim#L35

this fails and return -1 on my macos, last os code is 42

this may not cause gs.selector.unregister(fd.int), commented this server still works.

olliNiinivaara commented 1 year ago

Unfortunately, I don't have the capacity to support any other OS than Linux. If someone is willing to maintain a fork for macos, I can advertise a link to it on the front page.