sync upstream avhttp