now client flushes the outputStream after sending the data