allows sending websockets messages directly from a sharedarea

This commit is contained in:
Unbit
2013-11-30 11:19:28 +00:00
parent ace79b1179
commit 60b54c4d7c
4 changed files with 85 additions and 2 deletions
+1 -1
View File
@@ -1589,7 +1589,7 @@ PyObject *py_uwsgi_sharedarea_read(PyObject * self, PyObject * args) {
if (!sa) {
return PyErr_Format(PyExc_ValueError, "error calling uwsgi_sharedarea_read()");
}
len = sa->max_pos+1;
len = (sa->max_pos+1)-pos;
}
PyObject *ret = PyString_FromStringAndSize(NULL, len);