diff options
author | Bjørn Mork <bjorn@mork.no> | 2015-06-23 14:18:02 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2015-06-23 14:18:02 +0200 |
commit | f8271f58d0f47f7a7ffa787512c227982eb4d6f2 (patch) | |
tree | e322246d7397340bc74b0ae9c6f482ee0a3abb6d /eperd/httpget.c | |
parent | 8c746b3a2bfb67addbfa4d3d4b7c0dbc2e8ba985 (diff) |
ripe-atlas-fw: imported version 47004700
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'eperd/httpget.c')
-rw-r--r-- | eperd/httpget.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eperd/httpget.c b/eperd/httpget.c index 1a8fe09..f68ec81 100644 --- a/eperd/httpget.c +++ b/eperd/httpget.c @@ -310,6 +310,7 @@ static void timeout_callback(int __attribute((unused)) unused, const short __attribute((unused)) event, void *s) { struct hgstate *state; + char errline[256]; state= ENV2STATE(s); @@ -349,7 +350,16 @@ static void timeout_callback(int __attribute((unused)) unused, if (state->max_body) add_str(s, " ]"); #endif +#if 1 + snprintf(errline, sizeof(errline), + DBQ(err) ":" + DBQ(timeout reading chunk: state %d linelen %d lineoffset %d) + ", ", + state->readstate, state->linelen, state->lineoffset); + add_str(state, errline); +#else add_str(state, DBQ(err) ":" DBQ(timeout reading chunk) ", "); +#endif report(state); break; default: |