connection: Write before reading connection data