rpc subsystem is now async/greenthreads friendly

This commit is contained in:
Unbit
2013-02-07 18:31:44 +01:00
parent 9f15345183
commit 9d5d439191
9 changed files with 196 additions and 57 deletions
+1 -3
View File
@@ -393,14 +393,12 @@ PHP_FUNCTION(uwsgi_rpc) {
// response must always be freed
char *response = uwsgi_do_rpc(node, func, num_args - 2, argv, argvs, &size);
if (size > 0) {
if (response) {
// here we do not free varargs for performance reasons
char *ret = estrndup(response, size);
free(response);
RETURN_STRING(ret, 0);
}
free(response);
clear:
efree(varargs);