Commit ea823dd
IoUring: Only fire IoUringBufferRingExhaustedEvent if we could not (#15474)
expand the ring
Motivation:
When we use a buffer ring we usually increase its size up to a maximum
in batches. Because of this it can happen that we see an ENOBUF but
still can increase the number of buffers in the ring, which means we did
not hit the hard limit yet. If this happens we should better NOT fire an
IoUringBufferRingExhaustedEvent as in reality its not exhausted yet but
just not completely filled to the max.
Modifications:
Only fire IoUringBufferRingExhaustedEvent if we real hit the limit of
the number of buffers that we can put in the ring.
Result:
Less confusing event propagation
---------
Co-authored-by: Chris Vest <christianvest_hansen@apple.com>1 parent 757296c commit ea823dd
2 files changed
Lines changed: 10 additions & 7 deletions
File tree
- transport-classes-io_uring/src/main/java/io/netty/channel/uring
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | 434 | | |
440 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | | - | |
| 165 | + | |
164 | 166 | | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
| |||
0 commit comments