You could be right. Perhaps there's an interaction with the client that I'm not seeing. The daemon has a watchdog function to close and re-open the databases to flush all updates to the db files (in the event that it crashes, like it has been). I've also managed to get at least one core dump out of my testing, so it may even be a problem in the installed packages.

In the mean time I've written and alternate package to use flat files instead instead of DB_File. Looking at the problem now, I don't know why I didn't do that in the first place. The flat files are easily half (and sometimes much more) as big as the equivalent .db files, and I can open them up in any editor to trouble shoot problems. So far I haven't been able to break the daemon and the client response feels zippier, but that's entirely subjective. I still have the watchdog function scheduled to rewrite the entire file now and again. There's probably a smarter way to update the files without simply writing fresh copies, but it's simple and does the job for now.

In reply to Re^4: Problem with untie by ruzam
in thread Problem with untie by ruzam

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.