From 8d664355681302a08b671723699e3b3720a7703a Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Thu, 18 Oct 2018 06:41:12 +0200 Subject: Remember to set the server context in SCGI requests --- demo-json-rpc-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c index 50e203f..e210788 100644 --- a/demo-json-rpc-server.c +++ b/demo-json-rpc-server.c @@ -2339,6 +2339,7 @@ client_scgi_create (EV_P_ int sock_fd) self->client.vtable = &client_scgi_vtable; request_init (&self->request); + self->request.ctx = ev_userdata (EV_DEFAULT); self->request.write_cb = client_scgi_write_cb; self->request.close_cb = client_scgi_close_cb; -- cgit v1.2.3-70-g09d2