Closed snej closed 4 years ago
Yep GCD is very incomplete and crashes
I wish you had called this out in the README or elsewhere...
Any clues as to what's going wrong? I know dispatch queues fairly well but I've never worked with dispatch sources.
https://github.com/uNetworking/uSockets/blob/master/src/eventing/gcd.c#L132
It's incomplete, some parts are left unfinished
I'll switch to kqueues then ... are they more stable?
Yes Kqueue is tested and should be working pretty well
Don't have macOS anymore -> closing
On macOS 1014, opening a client connection (with or without SSL) to a port with no listener (i.e. the connection will fail with ECONNREFUSED) results in a crash in gcd.c.
Steps
http_load_test 1 localhost xxxxx
where xxxxx is a port number with nothing listeningThe result is basically the same whether or not the constant
SSL
is defined as 0 or 1.Result
Configuration
uSockets built from tag v0.3.1 macOS 10.14.5 Xcode 11b4