#12484: Document that cmemcache is definetly not thread safe --------------------------+------------------------------------------------- Reporter: anonymous | Owner: nobody Status: new | Milestone: Component: Cache system | Version: 1.1 Keywords: cmemcache | Stage: Unreviewed Has_patch: 0 | --------------------------+------------------------------------------------- Using the cmemcache in threaded environment will eventually lead to cache failure.
{{{ [fa...@1262456081.210803] mcm_get_line():1547: memcache(4) protocol error: no \r before \n [fa...@1262456081.282046] mcm_get_line():1547: memcache(4) protocol error: no \r before \n [fa...@1262456081.282084] mcm_fetch_cmd():1159: memcache(4) protocol error: protocol, expected a response [fa...@1262456081.761118] mcm_get_line():1547: memcache(4) protocol error: no \r before \n }}} Steps to reproduce: 1. /usr/sbin/ab -n 100 -c 2 http://example.com/my_cached_page Maybe the solution is to use threading.local to store cmemcache objects. -- Ticket URL: <http://code.djangoproject.com/ticket/12484> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.