projects
/
public-inbox.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d51d726
)
nntp: do not repeat result on blocked write
author
Eric Wong <e@80x24.org>
Fri, 25 Sep 2015 02:27:53 +0000 (
02:27
+0000)
committer
Eric Wong <e@80x24.org>
Fri, 25 Sep 2015 02:29:06 +0000 (
02:29
+0000)
Oops, we must increment our range even if we yield or
get blocked on output buffering.
lib/PublicInbox/NNTP.pm
patch
|
blob
|
history
diff --git
a/lib/PublicInbox/NNTP.pm
b/lib/PublicInbox/NNTP.pm
index dd033e89e75bec54ee2a1e40c8e6b1ca4784a0ea..7e2c2abdb624da5ac72649c9b52b2f9d84984dca 100644
(file)
--- a/
lib/PublicInbox/NNTP.pm
+++ b/
lib/PublicInbox/NNTP.pm
@@
-508,8
+508,8
@@
sub long_response ($$$$) {
my $err;
do {
eval { $cb->(\$beg) };
- } until (($err = $@) || $self->{closed} ||
$yield ||
-
$self->{write_buf_size} || ++$beg > $end
);
+ } until (($err = $@) || $self->{closed} ||
+
++$beg > $end || $yield || $self->{write_buf_size}
);
ualarm(0);
if ($err || $self->{closed}) {