[hackers] [quark] Revert "request: ignore empty request in log" || FRIGN
commit 4674ccde50b2c006d66ec4869a8a9cb3e77e86c8
Author: FRIGN <dev_AT_frign.de>
Date: Mon Aug 25 00:59:57 2014 +0200
Revert "request: ignore empty request in log"
This reverts commit 68f51ac37af761e64c1854ea7d4a4bebc83897e7.
The idea is good, but we just didn't yet get the right format
for the reading-cycle, which effectively keeps offset at 0
when it's all done in one read.
Let's call it a day and get back to the drawing-boards
tomorrow.
diff --git a/quark.c b/quark.c
index ebfae74..d211abb 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -457,8 +457,6 @@ request(void) {
logerrmsg("error read: %s
", strerror(errno));
return -1;
}
- if(offset == 0)
- return -2; /* empty request, ignore in log */
/* extract host and mod */
if (getreqentry("Host:", reqhost, LENGTH(reqhost), "
") != 0)
_AT_@ -539,8 +537,7 @@ serve(int fd) {
status = -1;
if (result == 0)
response();
- if(result != -2)
- logmsg("%d %s %s
", status, host, status == -1 ? "" : reqbuf);
+ logmsg("%d %s %s
", status, host, reqbuf);
shutdown(req.fd, SHUT_WR);
close(req.fd);
exit(EXIT_SUCCESS);
Received on Mon Aug 25 2014 - 00:58:59 CEST
This archive was generated by hypermail 2.3.0
: Mon Aug 25 2014 - 01:00:14 CEST