Thanks very much for your answers.

I svn'ed up to 2654 but am still seeing errors. The errors happen more
frequently after the upgrade. What I'm getting back is:

  File "C:\Django\hodie\kron.py", line 109, in ?    db_save(this_inst)
  File "C:\Django\hodie\kron.py", line 14, in db_save    obj.save()
  File
"c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\utils\functional.py",
line 3, in _curried
    return args[0](*(args[1:]+moreargs), **dict(kwargs.items() +
morekwargs.items()))
  File
"c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\meta\__init__.py",
line 1029, in method_save    db.db.commit()
  File
"c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\db\backe
nds\mysql.py", line 76, in commit
    self.connection.commit()
_mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL
server during query')

I tried using try/except on the database save but the 2013 error killed
my app anyway. I have now managed to work around it by setting a lock
on writing to the database (using thread.allocate_lock() ) and this
doesn't kill the application too much. As soon as I allow the thred to
write to the database I get the errors and I suspect that it is
simultaneous writes from the thread and the main programme that is
triggering the error.

Cheers,
Mike


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to