Commit b47fef3
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 b47fef3
1 file changed
Lines changed: 15 additions & 2 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 | | |
| |||
446 | 457 | | |
447 | 458 | | |
448 | 459 | | |
449 | | - | |
450 | | - | |
| 460 | + | |
| 461 | + | |
451 | 462 | | |
| 463 | + | |
452 | 464 | | |
453 | 465 | | |
454 | 466 | | |
455 | 467 | | |
456 | 468 | | |
457 | 469 | | |
| 470 | + | |
458 | 471 | | |
459 | 472 | | |
460 | 473 | | |
| |||
0 commit comments