NetworkClient: Fixed reading of DG size for async_write