Skip to content

Commit

Permalink
nnrpd: Fix timer statistics when COMPRESS is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-Elie committed Nov 20, 2021
1 parent 2ec7f68 commit 37fad36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/pod/news.pod
Expand Up @@ -38,6 +38,11 @@ for the path.

=item *

B<nnrpd> now properly gathers timer statistics when a compression layer
is active.

=item *

B<innfeed> and B<ovdb_stat> now generate status reports in valid HTML syntax.

=item *
Expand Down
2 changes: 2 additions & 0 deletions nnrpd/article.c
Expand Up @@ -77,6 +77,8 @@ PushIOvHelper(struct iovec* vec, int* countp)
}

*countp = 0;

TMRstop(TMR_NNTPWRITE);
return;
}
#endif /* HAVE_ZLIB */
Expand Down
2 changes: 2 additions & 0 deletions nnrpd/nnrpd.c
Expand Up @@ -706,6 +706,7 @@ write_buffer(const char *buff, ssize_t len)
sysnotice("deflate() failed: %d; %s", r,
zstream_out->msg != NULL ? zstream_out->msg :
"no detail");
TMRstop(TMR_NNTPWRITE);
return;
}
} while (r == Z_OK && zstream_out->avail_out == 0);
Expand All @@ -732,6 +733,7 @@ write_buffer(const char *buff, ssize_t len)
sysnotice("sasl_encode() failed: %s; %s",
sasl_errstring(r, NULL, NULL),
ed != NULL ? ed : "no detail");
TMRstop(TMR_NNTPWRITE);
return;
}
} else
Expand Down

0 comments on commit 37fad36

Please sign in to comment.