2009-01-07
2009-01-07 16:19:02 by Martin Stjernholm <mast@lysator.liu.se>
-
7a142411ec983200dc42ddf9daba74d648b5e906
(19 lines)
(+6/-13)
[
Show
| Annotate
]
Branch: 5.2
Adapted the CONNECTION_DEBUG output to the behavior of
sprintf ("%O", ...) in 7.8.
Rev: server/protocols/http.pike:1.573
2:
// Modified by Francesco Chemolli to add throttling capabilities.
// Copyright © 1996 - 2004, Roxen IS.
- constant cvs_version = "$Id: http.pike,v 1.572 2008/12/11 15:32:22 jonasw Exp $";
+ constant cvs_version = "$Id: http.pike,v 1.573 2009/01/07 16:19:02 mast Exp $";
// #define REQUEST_DEBUG
#define MAGIC_ERROR
334: Inside #if defined(CONNECTION_DEBUG)
#endif
)
werror ("HTTP[%s]: Response (length %d) ===============================\n"
- "%s\n", DEBUG_GET_FD, sizeof (what),
- replace (sprintf ("%O", what),
- ({"\\r\\n", "\\n", "\\t"}),
- ({"\n", "\n", "\t"})));
+ "%O\n", DEBUG_GET_FD, sizeof (what), what);
else
werror ("HTTP[%s]: Response =============================================\n"
"String, length %d\n", DEBUG_GET_FD, sizeof (what));
1909: Inside #if defined(CONNECTION_DEBUG)
} else if (!data) data = "";
#ifdef CONNECTION_DEBUG
werror("HTTP[%s]: Response (length %d) ===============================\n"
- "%s\n", DEBUG_GET_FD, sizeof (headers) + sizeof (data),
- replace(sprintf("%O", headers + data),
- ({"\\r\\n", "\\n", "\\t"}),
- ({"\n", "\n", "\t"})));
+ "%O\n", DEBUG_GET_FD, sizeof (headers) + sizeof (data),
+ headers + data);
#else
REQUEST_WERR(sprintf("HTTP: Send blocking %O", headers + data));
#endif
2378: Inside #if defined(CONNECTION_DEBUG)
{
#ifdef CONNECTION_DEBUG
werror ("HTTP[%s]: Request ----------------------------------------------\n"
- "%s\n", DEBUG_GET_FD,
- replace (sprintf ("%O", s),
- ({"\\r\\n", "\\n", "\\t"}),
- ({"\n", "\n", "\t"})));
+ "%O\n", DEBUG_GET_FD, s);
#else
REQUEST_WERR(sprintf("HTTP: Got %O", s));
#endif