Buffer writes on a connection