On 2018/5/11 12:52, Patrick Hemmer wrote: > This adds the set-priority-class and set-priority-offset actions to > http-request and tcp-request content. > The priority values are used when connections are queued to determine > which connections should be served first. The lowest priority class is > served first. When multiple requests from the same class are found, the > earliest (according to queue_time + offset) is served first. > --- > doc/configuration.txt | 38 ++++++ > doc/lua-api/index.rst | 18 +++ > include/types/proxy.h | 3 +- > include/types/queue.h | 2 +- > include/types/server.h | 3 +- > include/types/stream.h | 7 +- > src/cfgparse.c | 15 +++ > src/hlua.c | 74 ++++++++--- > src/log.c | 4 +- > src/proto_http.c | 4 +- > src/proxy.c | 2 +- > src/queue.c | 345 > ++++++++++++++++++++++++++++++++++++++++++------- > src/server.c | 2 +- > src/stream.c | 10 +- > 14 files changed, 453 insertions(+), 74 deletions(-) > > I found one issue I'll need to fix. During final code cleanup I accidentally replaced good code with the `key_incr` function in 2 places (pendconn_redistribute and pendconn_grab_from_px). Will fix and submit new patch pending feedback.
-Patrick

