added rpc support to ruby

This commit is contained in:
roberto@debian32
2011-11-11 12:29:04 +01:00
parent 78a0d5f432
commit 6854394e5c
6 changed files with 91 additions and 1 deletions
+1 -1
View File
@@ -1263,7 +1263,7 @@ uint16_t uwsgi_python_rpc(void *func, uint8_t argc, char **argv, char *buffer) {
if (ret) {
if (PyString_Check(ret)) {
rv = PyString_AsString(ret);
rl = strlen(rv);
rl = PyString_Size(ret);
if (rl <= 0xffff) {
memcpy(buffer, rv, rl);
Py_DECREF(ret);