By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,994 Members | 1,166 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,994 IT Pros & Developers. It's quick & easy.

Re: Using ElementTree as backend for a chat web application issues

P: n/a
En Mon, 09 Jun 2008 15:32:00 -0300, Marcelo de Moraes Serpa
I've built a chat with a front-end Ajax client and backend usign
to persist the data.

In some circunstances I could not yet discover (it seems random) when I
edit/save the structure, the structure gets corrupted, elementree seems
get lost in its internal "cursor", usually something like this happens:

<chat id="1">
<chat id="2">

Pretty strange, and it drives the whole application unusable.

I don't know if the concurrent nature of the application (multiple users
using the client at almost the same time and sending data to the server
which in turn must save the data to the same global.xml file) has
to do with it - I don't know if ElementTree is suitable for this kind of
thing. How to hanlde this concurrent issue?
I don't think it's a problem with ElementTree. Perhaps you are writing the
same (global) configuration file from several threads at the same time?
You may need some locking mechanism in that case.

Gabriel Genellina

Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.