Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

Response is slow when applying filter

$
0
0

When using a connection pool on a client, logging is not performed on a per-request basis, so I am trying to log on a per-payload basis.

I try to use a HAProxy custom filter, but If you send a lot of requests, sometimes the response is slow and errors occur. Moreover, sometimes the process is terminated.

The same situation occurs even if the filter is implemented as shown below. Why is this?

PayloadLog = {}
PayloadLog.id = "Payload Log"
PayloadLog.flags = filter.FLT_CFG_FL_HTX
PayloadLog.__index = PayloadLog

function PayloadLog:new()
    local log = {}
    return log
end

function payloadLogFilter(flt, args)
    return flt
end

core.register_filter('payload-log', PayloadLog, payloadLogFilter)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>