about summary refs log tree commit diff stats
path: root/src/local/select.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-03 17:33:09 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-03 17:33:09 +0100
commitb4a0b79cacefdb58d556aec8ee75d6f1f7a0be49 (patch)
tree5cdf6dfafcb6ad90e64b5ad2f4f44b0ef7178ead /src/local/select.nim
parent6776f4dba975137f4034b1295c0f1958b752a2cb (diff)
downloadchawan-b4a0b79cacefdb58d556aec8ee75d6f1f7a0be49.tar.gz
buffer: improve/fix onload return values
Only report when bytesRead has changed, otherwise we get unnecessary
load requests. (This means -2 return value no longer exists; it did
not work correctly anyway.)

Also, fix the race condition that broke onload returns when onload
happened before client requested load.
Diffstat (limited to 'src/local/select.nim')
0 files changed, 0 insertions, 0 deletions