diff options
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 920b52a..5d14eb1 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -2510,9 +2510,7 @@ HTMLfile *checkHTMLcache(char *file) | |||
2510 | ret->last.tv_sec = sb.st_mtim.tv_sec; | 2510 | ret->last.tv_sec = sb.st_mtim.tv_sec; |
2511 | ret->last.tv_nsec = sb.st_mtim.tv_nsec; | 2511 | ret->last.tv_nsec = sb.st_mtim.tv_nsec; |
2512 | 2512 | ||
2513 | I("Loading web template %s", file); | 2513 | D("Loading web template %s, which is %d bytes long.", file, length); |
2514 | D("Web template %s is %d bytes long.", file, length); | ||
2515 | |||
2516 | mm = mmap(NULL, length, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); | 2514 | mm = mmap(NULL, length, PROT_READ, MAP_SHARED | MAP_POPULATE, fd, 0); |
2517 | if (mm == MAP_FAILED) | 2515 | if (mm == MAP_FAILED) |
2518 | { | 2516 | { |
@@ -4799,13 +4797,15 @@ t("QUERY"); | |||
4799 | } | 4797 | } |
4800 | Body[len] = '\0'; | 4798 | Body[len] = '\0'; |
4801 | } | 4799 | } |
4800 | else | ||
4801 | Length = "0"; | ||
4802 | t("BODY"); | 4802 | t("BODY"); |
4803 | Rd->body = toknize(Body, "=&"); | 4803 | Rd->body = toknize(Body, "=&"); |
4804 | santize(Rd->body, TRUE); | 4804 | santize(Rd->body, TRUE); |
4805 | 4805 | ||
4806 | 4806 | ||
4807 | I("Started SledjChisl FCGI web %s request ROLE = %s, body is %s bytes, pid %d.", Rd->Method, Role, Length, getpid()); | 4807 | I("Started FCGI web %s request ROLE = %s, body is %s bytes, pid %d.", Rd->Method, Role, Length, getpid()); |
4808 | I(" %s://%s%s -> %s%s", Rd->Scheme, Rd->Host, Rd->RUri, webRoot, Path); | 4808 | D("%s://%s%s -> %s%s", Rd->Scheme, Rd->Host, Rd->RUri, webRoot, Path); |
4809 | 4809 | ||
4810 | 4810 | ||
4811 | /* TODO - other headers may include - | 4811 | /* TODO - other headers may include - |
@@ -4981,7 +4981,7 @@ fcgiDone: | |||
4981 | perror_msg("Unable to get the time."); | 4981 | perror_msg("Unable to get the time."); |
4982 | double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; | 4982 | double n = (now.tv_sec * 1000000000.0) + now.tv_nsec; |
4983 | double t = (Rd->then.tv_sec * 1000000000.0) + Rd->then.tv_nsec; | 4983 | double t = (Rd->then.tv_sec * 1000000000.0) + Rd->then.tv_nsec; |
4984 | I("Finished SledjChisl web request, took %lf seconds", (n - t) / 1000000000.0); | 4984 | I("Finished web request, took %lf seconds", (n - t) / 1000000000.0); |
4985 | } | 4985 | } |
4986 | 4986 | ||
4987 | FCGI_fprintf(FCGI_stderr, "Stopped SledjChisl web server.\n"); | 4987 | FCGI_fprintf(FCGI_stderr, "Stopped SledjChisl web server.\n"); |