connection add write and read buffer