Commit b5037f4
committed
Reduce chance of accidental synchronization of ServiceInfo requests
- ServiceInfo requests are frequently triggered by multicast responses
to ServiceBrowser requests. When multiple instances of zeroconf are
present on the same network, they can all end up sending ServiceInfo
queries at the same time. We now use a random delay as described in
rfc6762 sec 5.2 after the first request. Ideally we would add the
delay before the first query as well, however that may break existing
workflows so it was not done at this time.1 parent 5fb3e20 commit b5037f4
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
55 | 66 | | |
56 | 67 | | |
57 | 68 | | |
| |||
455 | 466 | | |
456 | 467 | | |
457 | 468 | | |
| 469 | + | |
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
| |||
0 commit comments