}
if (lsopt.type == SOCK_DGRAM) {
+#if (NGX_HAVE_TCP_FASTOPEN)
+ if (lsopt.fastopen != -1) {
+ return "\"fastopen\" parameter is incompatible with \"udp\"";
+ }
+#endif
+
if (backlog) {
return "\"backlog\" parameter is incompatible with \"udp\"";
}
if (lsopt.proxy_protocol) {
return "\"proxy_protocol\" parameter is incompatible with \"udp\"";
}
-
-#if (NGX_HAVE_TCP_FASTOPEN)
- if (lsopt.fastopen != -1) {
- return "\"fastopen\" parameter is incompatible with \"udp\"";
- }
-#endif
}
for (n = 0; n < u.naddrs; n++) {