Some of my users receive `IOException: Fail to sel...
# ktor
t
Some of my users receive
IOException: Fail to select descriptor 134 for ACCEPT
. It seems this comes from this line. Is there any reason this exception is even thrown? The
pselect
function can return errors for e.g. OOB data. I guess this could be just ignored, right?
If there is indeed no reason to throw this exception I can create a PR to remove it. Is there any reason this is needed?
I think (but please correct me) that the JVM version does not handle OOB data, so why should the native version handle it.
e
Hey @Thomas, it looks like it can happen when the descriptor is closed (and can be ignored)
t
Ok, but the descriptor is closed by the selector only, so that cannot happen while in a select call, right?
I thought that's what the notifyClosed method is for
@e5l thanks, reproduced the possible cause, working on a fix. https://github.com/ktorio/ktor/pull/4202
In the first commit you can see test failure on macosX64