Handling of client requests. Send/recv problems