Differences From Artifact [2dacb355e7]:
- File src/OFKernelEventObserver.m — part of check-in [a2f2a3289d] at 2014-03-05 00:34:59 on branch trunk — OFKernelEventObserver: Only use 1 internal socket (user: js, size: 9003) [annotate] [blame] [check-ins using]
To Artifact [fb20fdd1d1]:
- File
src/OFKernelEventObserver.m
— part of check-in
[acc999a75e]
at
2014-05-31 17:57:21
on branch trunk
— OFStream: Add -[hasDataInReadBuffer].
This replaces -[numberOfBytesInReadBuffer], as it's not always known how
many bytes there are exactly and thus the number would often be wrong
(e.g. because data is compressed). (user: js, size: 8993) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
403 404 405 406 407 408 409 | { id *objects = [_readObjects objects]; size_t i, count = [_readObjects count]; bool foundInCache = false; for (i = 0; i < count; i++) { if ([objects[i] isKindOfClass: [OFStream class]] && | | | 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 | { id *objects = [_readObjects objects]; size_t i, count = [_readObjects count]; bool foundInCache = false; for (i = 0; i < count; i++) { if ([objects[i] isKindOfClass: [OFStream class]] && [objects[i] hasDataInReadBuffer] && ![objects[i] OF_isWaitingForDelimiter]) { void *pool = objc_autoreleasePoolPush(); if ([_delegate respondsToSelector: @selector(objectIsReadyForReading:)]) [_delegate objectIsReadyForReading: objects[i]]; |
︙ | ︙ |