Skip to content

Instantly share code, notes, and snippets.

@lexborisov
Created November 25, 2020 16:56
Show Gist options
  • Save lexborisov/b92c1d4efe9361b767378323f9aefe53 to your computer and use it in GitHub Desktop.
Save lexborisov/b92c1d4efe9361b767378323f9aefe53 to your computer and use it in GitHub Desktop.
# HG changeset patch
# User Alexander Borisov <alexander.borisov@nginx.com>
# Date 1606323195 -10800
# Wed Nov 25 19:53:15 2020 +0300
# Node ID e6e56372ad73c714bc02b1688fd6f18fb697ad2d
# Parent 434f20c29f4c71982368b16a98f52e91d2526497
Added resolving post events for nginx.
diff -r 434f20c29f4c -r e6e56372ad73 nginx/ngx_js.c
--- a/nginx/ngx_js.c Wed Nov 25 10:47:47 2020 +0000
+++ b/nginx/ngx_js.c Wed Nov 25 19:53:15 2020 +0300
@@ -79,11 +79,7 @@ ngx_js_call(njs_vm_t *vm, ngx_str_t *fna
return NGX_ERROR;
}
- if (njs_vm_pending(vm)) {
- return NGX_AGAIN;
- }
-
- return NGX_OK;
+ return njs_vm_run(vm);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment