(login_request): Set the priority and weight from
param.default_priority and param.default_weight. (adjust_penalty): Use the weight to reduce the penalty. (get_scheduling): Return the actual scheduling information from the connection. (set_scheduling): Check the priority and weight against param.max_priority and param.max_weight. Allow the user to change them, as long as it is done within those limits. Store the new values in the connection. Note: the current implementation cannot handle more than one priority. The check for that is made in server-config.c.
Showing with 29 additions and 12 deletions