+ int pmtu = meshlink_get_pmtu(mesh1, meshlink_get_node(mesh1, "baz"));
+
+ for(int i = 0; i < 10 && !pmtu; i++) {
+ sleep(1);
+ pmtu = meshlink_get_pmtu(mesh1, meshlink_get_node(mesh1, "baz"));
+ }
+
+ if(!pmtu) {
+ fprintf(stderr, "UDP communication with baz not possible after 10 seconds\n");
+ return 1;
+ }
+
+ // Check that nodes cannot join with expired invitations
+
+ meshlink_set_invitation_timeout(mesh1, 0);
+
+ if(meshlink_join(mesh3, quux_url)) {
+ fprintf(stderr, "Quux could join foo's mesh using an outdated invitation\n");
+ return 1;
+ }
+
+ free(quux_url);
+