// send startup message
socket.configureBlocking(false);
state = ConnectionState.SendingStartup;
currentOutBuffer = new Startup(user, dbname, options).toBytes();
currentInMessage = new ProtocolMessageBuffer();
} catch (IOException e) {
state = ConnectionState.Failed;
throw e;
}
}