trifork / erjang

A JVM-based Erlang VM
http://www.erjang.org
Apache License 2.0
726 stars 62 forks source link

NIOSelector dies #26

Closed krestenkrab closed 13 years ago

krestenkrab commented 14 years ago

When I did some load testing on mochiweb / erjang I got this exception. Have to look into it later.

Exception in thread "Thread-5" java.nio.channels.CancelledKeyException
at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55)
at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69)
at sun.nio.ch.KQueueSelectorImpl.updateSelectedKeys(KQueueSelectorImpl.java:105)
at sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:74)
at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:80)
at sun.nio.ch.SelectorImpl.select(SelectorImpl.java:84)
at erjang.driver.NIOSelector.run(NIOSelector.java:113)
eriksoe commented 13 years ago

Is this solved by a1b834b4ca9a42e5d2177fb6ddc82983da58f046 ?

krestenkrab commented 13 years ago

I think so; at least I try to handle it. This bug happens very seldom, so let's close it.