Permalink
Browse files

git-svn-id: svn://cherokee-project.com/cherokee/trunk@2404 5dc97367-9…

…7f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 8158145 commit 4a68bffdca39ff15663cd2b96ef7004a3d267833 taher committed Nov 17, 2008
Showing with 12 additions and 4 deletions.
  1. +5 −0 ChangeLog
  2. +7 −4 cherokee/handler_fcgi.c
View
@@ -1,3 +1,8 @@
+2008-11-17 Taher Shihadeh <taher@unixwars.com>
+
+ * cherokee/handler_fcgi.c: gets rid of a warning that shouldn't be
+ there.
+
2008-11-16 Antonio Perez <aperez@skarcha.com>
* cherokee/connection.c: Keep-alive was been disabled ALWAYS when
@@ -68,7 +68,7 @@ process_package (cherokee_handler_fcgi_t *hdl, cherokee_buffer_t *inbuf, cheroke
cuint_t type;
cuint_t id;
cuint_t padding;
-
+
/* Is there enough information?
*/
if (inbuf->len < sizeof(FCGI_Header))
@@ -117,12 +117,15 @@ process_package (cherokee_handler_fcgi_t *hdl, cherokee_buffer_t *inbuf, cheroke
if (CONN_VSRV(conn)->logger != NULL) {
cherokee_buffer_t tmp = CHEROKEE_BUF_INIT;
-
+
cherokee_buffer_add (&tmp, data, len);
cherokee_logger_write_string (CONN_VSRV(conn)->logger, "%s", tmp.buf);
- PRINT_ERROR ("%s\n", tmp.buf);
cherokee_buffer_mrproper (&tmp);
}
+ else if (SOURCE_INT(hdl->src_ref)->debug) {
+ PRINT_MSG ("%.*s\n", len, data);
+ }
+
break;
case FCGI_STDOUT:
@@ -147,7 +150,7 @@ process_package (cherokee_handler_fcgi_t *hdl, cherokee_buffer_t *inbuf, cheroke
}
cherokee_buffer_move_to_begin (inbuf, len + FCGI_HEADER_LEN + padding);
-/* printf ("- FCGI quedan %d\n", inbuf->len); */
+/* printf ("- FCGI left %d\n", inbuf->len); */
return ret_eagain;
}

0 comments on commit 4a68bff

Please sign in to comment.