throw sockerr(context.getRuntime(), "initialize: name or service not known");
} finally {
// only try to set blocking back if we succeeded to finish connecting
if (success) channel.configureBlocking(true);
}
initSocket(context.getRuntime(), new ChannelDescriptor(channel, new ModeFlags(ModeFlags.RDWR)));
} catch (InvalidValueException ex) {
throw context.getRuntime().newErrnoEINVALError();
} catch (ClosedChannelException cce) {
throw context.getRuntime().newErrnoECONNREFUSEDError();
} catch(IOException e) {