Eugene Lazutkin wrote: > Alex Brown wrote: > > Eugene Lazutkin wrote: > > > >> Alex Brown wrote: > >>> I am running django on a Windows server (apache 2.0.54/mod_python > >>> 3.1.3/postgres 8.0.3) > >>> > >>> Django would crash apache when running multiple automated scripts > >>> POSTing data at a high rate through a generic create_object view. > >>> > >>> After scanning the net I found various threading fix patches, and I > >>> ended up finding that the thread-local-storage patch seemed to stop the > >>> server from crashing. The problem I have now is that occasionally (1 in > >> Could you give a link to the patch? > >> > >> Thanks, > >> > >> Eugene > > > > Sure.. the patch I used was > > http://code.djangoproject.com/attachment/ticket/1442/magic.threading.2.patch > > > > Which is really very simple (VERY simple for postgres) > > OMG! Adrian: when is it going to be merged to the trunk and to the > magic-removal branch? Is there something wrong with it? Any second > thoughts? Hidden problems? Negative experience with the patch? It is > amazing that such important defect was patched 7 month ago (#463 for > MySQL) but is not accepted even now!!! Why??? > > Alex: I'll look into this problem. Most probably there is a racing > condition in multithreaded Django. It doesn't look like it is related to > database backends. The chances are there are more static objects, which > are (improperly) shared across threads. > > Thanks, > > Eugene
Eugene, Let me know if there is anything I can do to help. Thanks, Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---