+ for (i = 0; i<3; i++)
+ {
+ r = connect(h->iofile, (struct sockaddr *) add, SUN_LEN(add));
+ if (r < 0 && yaz_errno() == EAGAIN)
+ {
+#if HAVE_USLEEP
+ usleep(i*10000+1000); /* 1ms, 11ms, 21ms */
+#else
+ sleep(1);
+#endif
+ continue;
+ }
+ else
+ break;
+ }