hawktracer icon indicating copy to clipboard operation
hawktracer copied to clipboard

TCP listener should use select() for waiting for a new client

Open loganek opened this issue 7 years ago • 0 comments

Currently in TCPListener we use accept() function to accept new connections. However, this function is blocking, and can't be interrupted, therefore test ApplicationShouldNotCrashWhenCreatingListenerFails hangs on mac os. If we rewrite tcp listener so it uses multiplexers (select()) we can use pipes to unblock the thread.

loganek avatar Aug 26 '18 16:08 loganek