change Connection: let the callers do message serialization themselves before writting
remove message logging, as the response contains too many garbage characters for logging
introduce cache into adapter, to avoid frequently invocation of Connection::write() which can cause performance goes down
minor code improvement of ByteBuffer
treat connection reset as disconnected, otherwise closeSocket() will complain that the socket is not connected