You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First request that matches the filter passes, second one hangs before it gets to the application
Steps to Reproduce
Target ip-visit-counter using an X-PG-Tenant header filter and this app
fromhttp.serverimportHTTPServer, BaseHTTPRequestHandlerclassChunkedHTTPHandler(BaseHTTPRequestHandler):
protocol_version="HTTP/1.1"defdo_GET(self):
# Send response headersself.send_response(200)
self.send_header("Content-Type", "text/plain")
self.send_header("Transfer-Encoding", "chunked")
self.end_headers()
# Send the response in chunkschunks= [
"This is the first chunk.\n"*8000,
"This is the second chunk.\n"
]
forchunkinchunks:
importtime;
time.sleep(3.0)
# Write the chunk size in hexadecimal followed by the chunk dataself.wfile.write(f"{len(chunk):X}\r\n".encode('utf-8'))
self.wfile.write(chunk.encode('utf-8'))
self.wfile.write(b"\r\n")
# Signal the end of the responseself.wfile.write(b"0\r\n\r\n")
if__name__=="__main__":
port=80print(f"Starting server on port {port}")
server=HTTPServer(("0.0.0.0", port), ChunkedHTTPHandler)
server.serve_forever()
Bug Description
First request that matches the filter passes, second one hangs before it gets to the application
Steps to Reproduce
ip-visit-counter
using anX-PG-Tenant
header filter and this appBacktrace
No response
mirrord layer logs
No response
mirrord intproxy logs
No response
mirrord agent logs
No response
mirrord config
No response
mirrord CLI version
3.128.0
mirrord-agent version
3.127.0
mirrord-operator version (if relevant)
3.101.0
plugin kind and version (if relevant)
No response
Your operating system and version
Ubuntu 24.04
Local process
/usr/bin/python3.12: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2
Local process version
No response
Additional Info
No response
The text was updated successfully, but these errors were encountered: