Weighted Fair Bandwidth Allocation for Adaptive Flows