Note that there are some explanatory texts on larger screens.

plurals
  1. POSlow name resolution in Bonjour
    primarykey
    data
    text
    <p>This seems so basic that people would be screaming about it, searching the web turned up nothing, but I have tested it on several networks and computers. We are having an issue where we use the .local url to access resources it is very slow. If we use the direct IP address we don’t see these delays. </p> <p>In our stripped down test setup the device and the computer are on the same switch and are the only devices on the switch. The same thing occurs when we are not in this very limited network configuration. Mac OS X Lion on the command line we are getting these results: </p> <p>With direct ip:</p> <pre><code>curl 10.101.62.42 0.01s user 0.00s system 18% cpu 0.059 total </code></pre> <p>With bonjour name:</p> <pre><code>curl http://xrx0000aac0fefd.local 0.01s user 0.00s system 0% cpu 5.063 total </code></pre> <p>It is consistently just above 5 seconds per request to resolve. It does not matter which device we try to connect to, the same seems to be occurring in our iPhone app, and is slow with Python scripts. Safari seems to be able to resolve the names quickly. </p> <p>We could resolve once and then use the IP address but that first request will still be unacceptably slow, and I don’t think this is the way Bonjour is supposed to work.</p> <p>We are not exactly sure when this started happening but it was not always this way. </p> <p>Edit: Another data point. On Snow Leopard it is not slow at resolving:</p> <pre><code>$ time curl http://hp1320.local &gt; /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 101 2848 0 2848 0 0 15473 0 --:--:-- --:--:-- --:--:-- 36512 real 0m0.201s user 0m0.005s sys 0m0.009s </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload