Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Commit ff8ae1f

Browse files
committed
transport: New poll method
The goal is for top-level transports to report whether the client is still present or not.
1 parent 2635286 commit ff8ae1f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/varnishd/cache/cache_transport.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ typedef void vtr_sess_panic_f (struct vsb *, const struct sess *);
4444
typedef void vtr_req_panic_f (struct vsb *, const struct req *);
4545
typedef void vtr_req_fail_f (struct req *, stream_close_t);
4646
typedef void vtr_reembark_f (struct worker *, struct req *);
47+
typedef int vtr_poll_f (struct req *);
4748
typedef int vtr_minimal_response_f (struct req *, uint16_t status);
4849

4950
struct transport {
@@ -64,6 +65,7 @@ struct transport {
6465
vtr_sess_panic_f *sess_panic;
6566
vtr_req_panic_f *req_panic;
6667
vtr_reembark_f *reembark;
68+
vtr_poll_f *poll;
6769
vtr_minimal_response_f *minimal_response;
6870

6971
VTAILQ_ENTRY(transport) list;

0 commit comments

Comments
 (0)