Lines Matching refs:srv

13 static int request_check_hostname(server *srv, connection *con, buffer *host) {  in request_check_hostname()  argument
22 UNUSED(srv); in request_check_hostname()
284 int http_request_parse(server *srv, connection *con) { in http_request_parse() argument
307 log_error_write(srv, __FILE__, __LINE__, "sdsdSb", in http_request_parse()
354 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
355 log_error_write(srv, __FILE__, __LINE__, "s", "incomplete request line -> 400"); in http_request_parse()
356 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
374 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
375 log_error_write(srv, __FILE__, __LINE__, "s", "unknown http-method -> 501"); in http_request_parse()
376 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
420 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
421 log_error_write(srv, __FILE__, __LINE__, "s", "unknown protocol -> 400"); in http_request_parse()
422 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
436 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
437 log_error_write(srv, __FILE__, __LINE__, "s", "unknown HTTP version -> 505"); in http_request_parse()
438 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
448 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
449 log_error_write(srv, __FILE__, __LINE__, "s", "unknown protocol -> 400"); in http_request_parse()
450 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
481 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
488 log_error_write(srv, __FILE__, __LINE__, "ss", in http_request_parse()
493 log_error_write(srv, __FILE__, __LINE__, "sd", in http_request_parse()
498 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
534 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
535 log_error_write(srv, __FILE__, __LINE__, "s", "overlong request line -> 400"); in http_request_parse()
536 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
555 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
556 log_error_write(srv, __FILE__, __LINE__, "s", "no uri specified -> 400"); in http_request_parse()
557 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
622 log_error_write(srv, __FILE__, __LINE__, "sbsds", in http_request_parse()
656 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
657 log_error_write(srv, __FILE__, __LINE__, "s", "WS character in key -> 400"); in http_request_parse()
658 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
684 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
685 log_error_write(srv, __FILE__, __LINE__, "s", "CR without LF -> 400"); in http_request_parse()
686 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
732 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
733 log_error_write(srv, __FILE__, __LINE__, "sbsds", in http_request_parse()
736 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
770 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
771 log_error_write(srv, __FILE__, __LINE__, "s", "WS at the start of first line -> 400"); in http_request_parse()
773 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
826 vals = srv->split_vals; in http_request_parse()
855 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
856 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
858 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
871 log_error_write(srv, __FILE__, __LINE__, "sbs", in http_request_parse()
888 log_error_write(srv, __FILE__, __LINE__, "sbs", in http_request_parse()
905 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
906 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
908 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
931 …if (srv->srvconf.reject_expect_100_with_417 && 0 == buffer_caseless_compare(CONST_BUF_LEN(ds->valu… in http_request_parse()
948 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
949 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
951 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
974 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
975 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
977 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
1006 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
1007 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
1009 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
1036 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
1037 log_error_write(srv, __FILE__, __LINE__, "sbs", in http_request_parse()
1053 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
1054 log_error_write(srv, __FILE__, __LINE__, "sds", in http_request_parse()
1089 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
1090 log_error_write(srv, __FILE__, __LINE__, "s", "HTTP/1.1 but Host missing -> 400"); in http_request_parse()
1091 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
1110 0 != request_check_hostname(srv, con, con->request.http_host)) { in http_request_parse()
1112 if (srv->srvconf.log_request_header_on_error) { in http_request_parse()
1113 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
1115 log_error_write(srv, __FILE__, __LINE__, "Sb", in http_request_parse()
1133 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
1145 log_error_write(srv, __FILE__, __LINE__, "s", in http_request_parse()
1167 log_error_write(srv, __FILE__, __LINE__, "sos", in http_request_parse()
1173 if (srv->srvconf.max_request_size != 0 && in http_request_parse()
1174 (con->request.content_length >> 10) > srv->srvconf.max_request_size) { in http_request_parse()
1182 log_error_write(srv, __FILE__, __LINE__, "sos", in http_request_parse()
1197 int http_request_header_finished(server *srv, connection *con) { in http_request_header_finished() argument
1198 UNUSED(srv); in http_request_header_finished()