[7.4] a983f4b70 transport: New poll method
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Oct 23 17:18:09 UTC 2023
commit a983f4b70b71959990ca5c800a48db80d476aa30
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Wed Oct 11 11:57:48 2023 +0200
transport: New poll method
The goal is for top-level transports to report whether the client is
still present or not.
diff --git a/bin/varnishd/cache/cache_transport.h b/bin/varnishd/cache/cache_transport.h
index 0e5f03c65..79f0a7b2d 100644
--- a/bin/varnishd/cache/cache_transport.h
+++ b/bin/varnishd/cache/cache_transport.h
@@ -44,6 +44,7 @@ typedef void vtr_sess_panic_f (struct vsb *, const struct sess *);
typedef void vtr_req_panic_f (struct vsb *, const struct req *);
typedef void vtr_req_fail_f (struct req *, stream_close_t);
typedef void vtr_reembark_f (struct worker *, struct req *);
+typedef int vtr_poll_f (struct req *);
typedef int vtr_minimal_response_f (struct req *, uint16_t status);
struct transport {
@@ -64,6 +65,7 @@ struct transport {
vtr_sess_panic_f *sess_panic;
vtr_req_panic_f *req_panic;
vtr_reembark_f *reembark;
+ vtr_poll_f *poll;
vtr_minimal_response_f *minimal_response;
VTAILQ_ENTRY(transport) list;
More information about the varnish-commit
mailing list