summaryrefslogtreecommitdiff
path: root/proxy_await.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy_await.c')
-rw-r--r--proxy_await.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proxy_await.c b/proxy_await.c
index 8c277ea..60cd004 100644
--- a/proxy_await.c
+++ b/proxy_await.c
@@ -167,6 +167,10 @@ static void mcp_queue_await_io(conn *c, lua_State *Lc, mcp_request_t *rq, int aw
// The direct backend object. await object is holding reference
p->backend = be;
+ // See #887 for notes.
+ // TODO (v2): hopefully this can be optimized out.
+ strncpy(r->be_name, be->name, MAX_NAMELEN+1);
+ strncpy(r->be_port, be->port, MAX_PORTLEN+1);
mcp_request_attach(Lc, rq, p);