aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-18 06:41:12 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-18 06:41:12 +0200
commit8d664355681302a08b671723699e3b3720a7703a (patch)
treebc2f0e432e0c3a5f48676a7071eb04b9efdd5407
parentd883f4cc71a1f9db5cc4cec2bc60df6cba1f8833 (diff)
downloadjson-rpc-shell-8d664355681302a08b671723699e3b3720a7703a.tar.gz
json-rpc-shell-8d664355681302a08b671723699e3b3720a7703a.tar.xz
json-rpc-shell-8d664355681302a08b671723699e3b3720a7703a.zip
Remember to set the server context in SCGI requests
-rw-r--r--demo-json-rpc-server.c1
1 files changed, 1 insertions, 0 deletions
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;