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

Commit f279c0c

Browse files
committed
http1: Do not reset the transport pointer
This allows code-reuse from custom implementations where only the deliver deliver callback differs.
1 parent c3b64c8 commit f279c0c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bin/varnishd/http1/cache_http1_fsm.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ http1_req(struct worker *wrk, void *arg)
8282
CAST_OBJ_NOTNULL(req, arg, REQ_MAGIC);
8383

8484
THR_SetRequest(req);
85-
req->transport = &HTTP1_transport;
8685
assert(!WS_IsReserved(wrk->aws));
8786
HTTP1_Session(wrk, req);
8887
AZ(wrk->v1l);
@@ -309,8 +308,7 @@ HTTP1_Session(struct worker *wrk, struct req *req)
309308
*/
310309
if (http1_getstate(sp) == H1NEWREQ)
311310
VTCP_blocking(sp->fd);
312-
313-
req->transport = &HTTP1_transport;
311+
req->transport = XPORT_ByNumber(sp->sattr[SA_TRANSPORT]);
314312

315313
while (1) {
316314
st = http1_getstate(sp);

0 commit comments

Comments
 (0)