diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-15 02:11:51 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-15 03:20:20 +0200 |
commit | 75b2094cdd893bff4fb6e28f228f134701eee15a (patch) | |
tree | 1fa0cad3155571868d8ddd4b223591b7f3e38aa0 /json-rpc-shell.c | |
parent | b3c377afdb1a53998980b80de112f16130d8bec3 (diff) | |
download | json-rpc-shell-75b2094cdd893bff4fb6e28f228f134701eee15a.tar.gz json-rpc-shell-75b2094cdd893bff4fb6e28f228f134701eee15a.tar.xz json-rpc-shell-75b2094cdd893bff4fb6e28f228f134701eee15a.zip |
json-rpc-test-server: add a simple co-process mode
A disgusting copy-paste but it will have to do for now.
Closes #6
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r-- | json-rpc-shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c index 1da11b0..38ff022 100644 --- a/json-rpc-shell.c +++ b/json-rpc-shell.c @@ -2623,7 +2623,7 @@ static const http_parser_settings backend_co_http_settings = }; static bool -backend_co_write_starter (struct co_context *self, struct error **e) +backend_co_inject_starter (struct co_context *self, struct error **e) { // The default "Connection: keep-alive" maps well here. // We cannot feed this line into the parser from within callbacks. @@ -2653,7 +2653,7 @@ backend_co_parse (struct co_context *self, const char *data, size_t len, if (self->pending_fake_starter) { self->pending_fake_starter = false; - if (!backend_co_write_starter (self, e)) + if (!backend_co_inject_starter (self, e)) return false; } |