114c114,116
< if (size == 0) {
---
> sb->limit_reached = 1;
>
> if (nxt_slow_path(size == 0)) {
121a124,125
> sb->nmax_reached = 1;
>