Implement of Masson's request, check if correct amount of bytes read/written