"tcp", "tls", NULL
};
+static char const *const he_no_tls_tports[] = { "tcp", NULL };
+
static tp_stack_class_t http_client_class[1] = { {
sizeof(http_client_class),
he_recv_message,
if (!he->he_tports)
return -1;
- return tport_tbind(he->he_tports, he_name, he_tports,
+ if (tport_tbind(he->he_tports, he_name, he_tports,
+ TPTAG_SERVER(0), TAG_NEXT(tags)) >= 0)
+ return 0;
+
+ return tport_tbind(he->he_tports, he_name, he_no_tls_tports,
TPTAG_SERVER(0), TAG_NEXT(tags));
}
"tcp", "tls", NULL
};
+static char const * const http_no_tls_tports[] = { "tcp", NULL };
+
static tp_stack_class_t nth_server_class[1] =
{{
sizeof(nth_server_class),
srv->srv_max_bodylen = 1 << 30; /* 1 GB */
if (tport_tbind(srv->srv_tports, tpn, http_tports,
+ TAG_END()) >= 0 ||
+ tport_tbind(srv->srv_tports, tpn, http_no_tls_tports,
TAG_END()) >= 0) {
srv->srv_root = root;
srv->srv_mclass = mclass ? mclass : http_default_mclass();