https://bugs.freedesktop.org/show_bug.cgi?id=47179

Stephan Bergmann <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|performance depends on      |performance depends on
                   |/etc/hosts                  |/etc/hosts ()

--- Comment #7 from Stephan Bergmann <[email protected]> ---
Quoting <https://bugzilla.redhat.com/show_bug.cgi?id=996013#c5>:

"Per the attached log.txt, it is a slow DNS query (against your local
192.168.8.1 server) to resolve your machine name ("thinkpad-leo"), blocking the
main thread for 4 seconds:

> [pid 23019] 23:18:13.598278 socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, 
> IPPROTO_IP) = 34 <0.000013>
> [pid 23019] 23:18:13.598322 connect(34, {sa_family=AF_INET, 
> sin_port=htons(53), sin_addr=inet_addr("192.168.8.1")}, 16) = 0 <0.000019>
> [pid 23019] 23:18:13.598380 poll([{fd=34, events=POLLOUT}], 1, 0) = 1 
> ([{fd=34, revents=POLLOUT}]) <0.000010>
> [pid 23019] 23:18:13.598426 sendto(34, 
> "\17D\1\0\0\1\0\0\0\0\0\0\fthinkpad-leo\0\0\1\0\1", 30, MSG_NOSIGNAL, NULL, 
> 0) = 30 <0.000061>
> [pid 23019] 23:18:13.598569 poll([{fd=34, events=POLLIN}], 1, 5000 
> <unfinished ...>
...
> [pid 23019] 23:18:17.641166 <... poll resumed> ) = 1 ([{fd=34, 
> revents=POLLIN}]) <4.042540>

"The reason this query is done is because
svt::DocumentLockFile::CreateOwnLockFile calls osl_getLocalHostname which, when
getting an unqualified name from gethostname(2) calls gethostbyname_r(3)."

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to