#ifdef WITH_TCP
if (sock->proto == IPPROTO_TCP) {
/*
- * Allow a backlog of 8 listeners
- */
- if (listen(this->fd, 8) < 0) {
- close(this->fd);
- ERROR("Failed in listen(): %s", fr_syserror(errno));
- return -1;
- }
-
- /*
* If there are hard-coded worker threads, they're blocking.
*
* Otherwise, they're non-blocking.
fr_syserror(errno));
return -1;
}
+
+ /*
+ * Allow a backlog of 8 listeners
+ */
+ if (listen(this->fd, 8) < 0) {
+ close(this->fd);
+ ERROR("Failed in listen(): %s", fr_syserror(errno));
+ return -1;
+ }
}
#endif