[MEDIUM] stats: make HTTP stats use an I/O handler
Doing this, we can remove the last BF_HIJACK user and remove
produce_content(). s->data_source could also be removed but
it is currently used to detect if the stats or a server was
used.
diff --git a/include/types/session.h b/include/types/session.h
index 226e00c..d3dbe67 100644
--- a/include/types/session.h
+++ b/include/types/session.h
@@ -211,7 +211,7 @@
int ptr; /* <0: headers, >=0 : text pointer to restart from */
int bol; /* pointer to beginning of current line */
} errors;
- } data_ctx; /* used by produce_content to dump the stats right now */
+ } data_ctx; /* used by stats I/O handlers to dump the stats */
unsigned int uniq_id; /* unique ID used for the traces */
};