vcl: update buf if whole buf cannot be done at once