Lines Matching refs:logmsg
269 logmsg("cannot install SIGHUP handler: %s", strerror(errno)); in install_signal_handlers()
274 logmsg("cannot install SIGPIPE handler: %s", strerror(errno)); in install_signal_handlers()
279 logmsg("cannot install SIGALRM handler: %s", strerror(errno)); in install_signal_handlers()
284 logmsg("cannot install SIGINT handler: %s", strerror(errno)); in install_signal_handlers()
291 logmsg("cannot install SIGTERM handler: %s", strerror(errno)); in install_signal_handlers()
298 logmsg("cannot install SIGBREAK handler: %s", strerror(errno)); in install_signal_handlers()
359 logmsg("fopen() failed with error: %d %s", error, strerror(error)); in parse_servercmd()
360 logmsg(" [1] Error opening file: %s", filename); in parse_servercmd()
361 logmsg(" Couldn't open test file %ld", req->testno); in parse_servercmd()
375 logmsg("getpart() failed with error: %d", error); in parse_servercmd()
387 logmsg("instructed to require authorization header"); in parse_servercmd()
391 logmsg("instructed to idle"); in parse_servercmd()
396 logmsg("instructed to stream"); in parse_servercmd()
401 logmsg("enabled connection monitoring"); in parse_servercmd()
405 logmsg("enabled upgrade to http2"); in parse_servercmd()
409 logmsg("instructed to allow a pipe size of %d", num); in parse_servercmd()
411 logmsg("negative pipe size ignored"); in parse_servercmd()
417 logmsg("instructed to skip this number of bytes %d", num); in parse_servercmd()
421 logmsg("instructed to delay %d secs between packets", num); in parse_servercmd()
425 logmsg("Unknown <servercmd> instruction found: %s", cmd); in parse_servercmd()
463 logmsg("Process %d bytes request%s", req->offset, in ProcessRequest()
472 logmsg("Are-we-friendly question received"); in ProcessRequest()
499 logmsg("%s", logbuf); in ProcessRequest()
502 logmsg("Are-we-friendly question received"); in ProcessRequest()
508 logmsg("Request-to-quit received"); in ProcessRequest()
532 logmsg("%s", logbuf); in ProcessRequest()
554 logmsg("%s", logbuf); in ProcessRequest()
574 logmsg("Invalid CONNECT IPv6 address format"); in ProcessRequest()
576 logmsg("Invalid CONNECT IPv6 port format"); in ProcessRequest()
588 logmsg("Invalid CONNECT port received"); in ProcessRequest()
593 logmsg("Port number: %d, test case number: %ld", in ProcessRequest()
616 logmsg("found test %d in requested host name", req->testno); in ProcessRequest()
625 logmsg("%s", logbuf); in ProcessRequest()
630 logmsg("Did not find test number in PATH"); in ProcessRequest()
638 logmsg("** Unusual request. Starts with %02x %02x %02x", in ProcessRequest()
644 logmsg("request not complete yet"); in ProcessRequest()
647 logmsg("- request found to be complete"); in ProcessRequest()
676 logmsg("%s", logbuf); in ProcessRequest()
715 logmsg("Found invalid Content-Length: (%s) in the request", ptr); in ProcessRequest()
721 logmsg("Found Content-Length: %lu in the request", clen); in ProcessRequest()
723 logmsg("... but will abort after %zu bytes", req->cl); in ProcessRequest()
749 logmsg("Authorization header found, as required"); in ProcessRequest()
758 logmsg("Received Digest request, sending back data %ld", req->partno); in ProcessRequest()
765 logmsg("Received NTLM type-3, sending back data %ld", req->partno); in ProcessRequest()
767 logmsg(" Expecting %zu POSTed bytes", req->cl); in ProcessRequest()
775 logmsg("Received NTLM type-1, sending back data %ld", req->partno); in ProcessRequest()
783 logmsg("Received Basic request, sending back data %ld", req->partno); in ProcessRequest()
819 logmsg("Return early due to auth requested by none provided"); in ProcessRequest()
825 logmsg("Found Upgrade: in request and allows it"); in ProcessRequest()
858 logmsg("[2] Error opening file %s error: %d %s", in storerequest()
860 logmsg("Failed to write request input "); in storerequest()
875 logmsg("Wrote request (%zu bytes) input to %s", totalsize, dumpfile); in storerequest()
877 logmsg("Error writing file %s error: %d %s", in storerequest()
879 logmsg("Wrote only (%zu bytes) of (%zu bytes) request input to %s", in storerequest()
889 logmsg("Error closing file %s error: %d %s", in storerequest()
969 logmsg("Connection closed by client"); in get_request()
978 logmsg("recv() returned error: (%d) %s", error, strerror(error)); in get_request()
988 logmsg("Read %zd bytes", got); in get_request()
997 logmsg("Waiting for another piped request"); in get_request()
1004 logmsg("Request would overflow buffer, closing connection"); in get_request()
1010 logmsg("Request buffer overflow, closing connection"); in get_request()
1058 logmsg("Stopped streaming"); in send_doc()
1076 logmsg("Replying to QUIT"); in send_doc()
1081 logmsg("Identifying ourselves as friends"); in send_doc()
1094 logmsg("Replying to with a 404"); in send_doc()
1114 logmsg("Send response test%ld section <%s>", req->testno, partbuf); in send_doc()
1119 logmsg("fopen() failed with error: %d %s", error, strerror(error)); in send_doc()
1120 logmsg(" [3] Error opening file: %s", filename); in send_doc()
1127 logmsg("getpart() failed with error: %d", error); in send_doc()
1142 logmsg("fopen() failed with error: %d %s", error, strerror(error)); in send_doc()
1143 logmsg(" [4] Error opening file: %s", filename); in send_doc()
1152 logmsg("getpart() failed with error: %d", error); in send_doc()
1170 logmsg("connection close instruction \"swsclose\" found in response"); in send_doc()
1174 logmsg("enable \"swsbounce\" in the next request"); in send_doc()
1182 logmsg("fopen() failed with error: %d %s", error, strerror(error)); in send_doc()
1183 logmsg(" [5] Error opening file: %s", responsedump); in send_doc()
1203 logmsg("Sent off %zd bytes", written); in send_doc()
1213 logmsg("Pausing %d seconds", req->writedelay); in send_doc()
1225 logmsg("Error closing file %s error: %d %s", in send_doc()
1235 logmsg("Sending response failed. Only (%zu bytes) of (%zu bytes) " in send_doc()
1243 logmsg("Response sent (%zu bytes) and written to %s", in send_doc()
1255 logmsg("Told to sleep for %d seconds", num); in send_doc()
1263 logmsg("wait_ms() failed with error: (%d) %s", in send_doc()
1269 logmsg("Continuing after sleeping %d seconds", num); in send_doc()
1272 logmsg("Unknown command in reply command section"); in send_doc()
1309 logmsg("about to connect to %s%s%s:%hu", in connect_to()
1316 logmsg("Error creating socket for server conection: (%d) %s", in connect_to()
1327 logmsg("====> TCP_NODELAY for server conection failed"); in connect_to()
1337 logmsg("Error inet_pton failed AF_INET conversion of '%s'", ipaddr); in connect_to()
1350 logmsg("Error inet_pton failed AF_INET6 conversion of '%s'", ipaddr); in connect_to()
1360 logmsg("Proxying through Unix socket is not (yet?) supported."); in connect_to()
1372 logmsg("Error connecting to server port %hu: (%d) %s", in connect_to()
1378 logmsg("connected fine to %s%s%s:%hu, now tunnel", in connect_to()
1529 logmsg("====> Client connect DATA"); in http_connect()
1536 logmsg("====> TCP_NODELAY for client DATA conection failed"); in http_connect()
1597 logmsg("[%s] got %zd, STOP READING client", data_or_ctrl(i), rc); in http_connect()
1602 logmsg("[%s] READ %zd bytes from client", data_or_ctrl(i), rc); in http_connect()
1603 logmsg("[%s] READ \"%s\"", data_or_ctrl(i), in http_connect()
1615 logmsg("[%s] got %zd, STOP READING server", data_or_ctrl(i), rc); in http_connect()
1620 logmsg("[%s] READ %zd bytes from server", data_or_ctrl(i), rc); in http_connect()
1621 logmsg("[%s] READ \"%s\"", data_or_ctrl(i), in http_connect()
1632 logmsg("[%s] got %zd, STOP WRITING client", data_or_ctrl(i), rc); in http_connect()
1638 logmsg("[%s] SENT %zd bytes to client", data_or_ctrl(i), rc); in http_connect()
1639 logmsg("[%s] SENT \"%s\"", data_or_ctrl(i), in http_connect()
1652 logmsg("[%s] got %zd, STOP WRITING server", data_or_ctrl(i), rc); in http_connect()
1658 logmsg("[%s] SENT %zd bytes to server", data_or_ctrl(i), rc); in http_connect()
1659 logmsg("[%s] SENT \"%s\"", data_or_ctrl(i), in http_connect()
1680 logmsg("[%s] DISABLED READING client", data_or_ctrl(i)); in http_connect()
1685 logmsg("[%s] DISABLED WRITING client", data_or_ctrl(i)); in http_connect()
1693 logmsg("[%s] DISABLED READING server", data_or_ctrl(i)); in http_connect()
1698 logmsg("[%s] DISABLED WRITING server", data_or_ctrl(i)); in http_connect()
1716 logmsg("[%s] CLOSING client socket", data_or_ctrl(i)); in http_connect()
1720 logmsg("[%s] ENDING", data_or_ctrl(i)); in http_connect()
1730 logmsg("[%s] CLOSING server socket", data_or_ctrl(i)); in http_connect()
1734 logmsg("[%s] ENDING", data_or_ctrl(i)); in http_connect()
1757 logmsg("CONNECT proxy timeout after %d idle seconds!", timeout_count); in http_connect()
1767 logmsg("[%s] CLOSING server socket (cleanup)", data_or_ctrl(i)); in http_connect()
1772 logmsg("[%s] CLOSING client socket (cleanup)", data_or_ctrl(i)); in http_connect()
1778 logmsg("[%s] ABORTING", data_or_ctrl(i)); in http_connect()
1788 logmsg("switched to http2"); in http2()
1802 logmsg("Too many open sockets!"); in accept_connection()
1820 logmsg("MAJOR ERROR: accept() failed with error: (%d) %s", in accept_connection()
1827 logmsg("curlx_nonblock failed with error: (%d) %s", in accept_connection()
1836 logmsg("setsockopt(SO_KEEPALIVE) failed with error: (%d) %s", in accept_connection()
1852 logmsg("====> Client connect"); in accept_connection()
1865 logmsg("====> TCP_NODELAY failed"); in accept_connection()
1894 logmsg("BOUNCE part number to %ld", req->partno); in service_connection()
1908 logmsg("special request received, no persistency"); in service_connection()
1912 logmsg("instructed to close connection after server-reply"); in service_connection()
1919 logmsg("received CONNECT but isn't running as proxy!"); in service_connection()
1937 logmsg("=> persistant connection request ended, awaits new request\n"); in service_connection()
2060 logmsg("Run as proxy, CONNECT to host %s", connecthost); in main()
2097 logmsg("Error creating socket: (%d) %s", in main()
2106 logmsg("setsockopt(SO_REUSEADDR) failed with error: (%d) %s", in main()
2112 logmsg("curlx_nonblock failed with error: (%d) %s", in main()
2146 logmsg("Error binding socket, failed to create socket at %s: (%d) %s", in main()
2155 logmsg("Error binding socket, failed to connect to %s: (%d) %s", in main()
2163 logmsg("Error binding socket, failed to stat %s: (%d) %s", in main()
2168 logmsg("Error binding socket, failed to stat %s: (%d) %s", in main()
2175 logmsg("Error binding socket, failed to unlink %s: (%d) %s", in main()
2187 logmsg("Error binding socket on %s: (%d) %s", in main()
2192 logmsg("Running %s %s version on %s", in main()
2199 logmsg("listen() failed with error: (%d) %s", in main()
2262 logmsg("select() failed with error: (%d) %s", in main()
2281 logmsg("accept_connection %d returned %d", sock, msgsock); in main()
2301 logmsg("====> Client disconnect %d", req.connmon); in main()
2352 logmsg("unlink(%s) = %d (%s)", unix_socket, rc, strerror(rc)); in main()
2357 logmsg("signalled to die"); in main()
2370 logmsg("========> %s sws (%s pid: %ld) exits with signal (%d)", in main()
2380 logmsg("========> sws quits"); in main()