2c1f17faa2
Motivation: We should throw a NotYetConnectedException when ENOTCONN errno is set. This is also consistent with NIO. Modification: Throw correct exception and add test case Result: More correct and consistent behavior.