<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Tahoma">Hi<br>
<br>
On windows you could lookup the environment variable COMPUTERNAME
and put that in the lock file. <br>
That would solve the issue with flaky remote shares.<br>
Could use uname on linux/MacOS.<br>
<br>
We could also use the IP address of the machine - that should help
with flaky NFS shares.<br>
Although in the presence of DHCP, it can be hard to figure out who
the problem machine was.<br>
<br>
For bonus points, put all of these in the lock file:<br>
(1) Some kind of COMPUTERNAME/uname lookup<br>
(2) IP address<br>
(3) MAC address<br>
<br>
That should be fast and safe, but necessarily as user-friendly as
the current solution.<br>
<br>
For extra-extra bonus points, we could run the DNS resolution on a
separate thread and also store that in the lock file if it is
available when we create the lock file :-)<br>
<br>
Regards, Noel Grandin.<br>
</font><br>
<br>
Michael Stahl wrote:
<blockquote cite="mid:j9r1tv$ft8$1@dough.gmane.org" type="cite">On
14/11/11 12:30, Michael Meeks wrote:
<br>
<blockquote type="cite">
<br>
On Sun, 2011-11-13 at 12:06 +0200, Tor Lillqvist wrote:
<br>
<blockquote type="cite">But in general we should avoid
potentially pointless DNS calls. Let's
<br>
not risk having to wait for DNS timeouts in badly configured
<br>
situations. I think there has been bug reports of OOo and/or
LO being
<br>
very slow to start in some cases, where the root cause has
been some
<br>
DNS call timing out?
<br>
</blockquote>
<br>
Yes - I've seen this. I spent a while debugging the:
<br>
<br>
"OO.o takes 14 seconds to start instead of 10"
<br>
<br>
type bugs, which used to riddle the whole linux desktop in
this
<br>
situation, and that I spent time in a previous life fixing /
working
<br>
around. If, as Stephan suggests, we use this for .lock files -
then I
<br>
don't believe we should ;-) having a potential 10+ second delay
before
<br>
opening a file is not ideal. [ and the duplicate count for these
huge
<br>
login / startup delays was really quite real& included me
FWIW ].
<br>
</blockquote>
<br>
hmm... but this is written in the lock file for a reason, so that
people who edit files on NFS shares can figure out where the
office process that is preventing them from editing is running.
<br>
<br>
perhaps it would be possible to do the DNS lookup asynchronously,
so it does not block the user experience?
<br>
<br>
<blockquote type="cite"> Indeed, it'd be rather nice if we
could sort out our .lock files story
<br>
so that I don't routinely see bogus/broken / stale lock file
dialogs
<br>
but ... ;-) that's a different story I guess; and one that needs
some
<br>
unit tests I suppose.
<br>
</blockquote>
<br>
please note that the file locking implementation is very brittle
because it has to work on any number of randomly broken networking
filesystem setups; changing anything there is a huge time sink
with high regression risk (at least that's what i remember from my
former colleague).
<br>
<br>
_______________________________________________
<br>
LibreOffice mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
<br>
<br>
</blockquote>
<br><br><br><hr><font size="-2" color=808080>Disclaimer: <a href="http://www.peralex.com/disclaimer.html">http://www.peralex.com/disclaimer.html</a><br><br>
</body>
</html>