dev@grizzly.java.net

why selectionkey can never return to a ready-operation state?

From: windshome <lixiangfeng_at_infosec.com.cn>
Date: Mon, 7 Jul 2008 01:04:18 -0700 (PDT)

In "Tricks and Tips with NIO part II: Why SelectionKey.attach() is evil", I
read this text:

"Boum...the little ... is where the devil is hiding! What you are attaching
to the SelectionKey is very dangerous, because there is some probability
that your SelectionKey might never return to a ready-operation state,
leaving the SelectionKey and its evil attachment forever inside the Selector
keys set."

But can someone tell me why? what is the "some probability", some bug of JVM
or OS or TCP? I must have a valid reason tell to other developer.

thanks.
-- 
View this message in context: http://www.nabble.com/why-selectionkey-can-never-return-to-a-ready-operation-state--tp18311876p18311876.html
Sent from the Grizzly - Development mailing list archive at Nabble.com.