Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Framework/Core/src/DataProcessingDevice.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ void on_socket_polled(uv_poll_t* poller, int status, int events)
case UV_READABLE: {
O2_SIGNPOST_EVENT_EMIT(device, sid, "socket_state", "Data pending on socket for channel %{public}s", context->name);
context->state->loopReason |= DeviceState::DATA_INCOMING;
context->channelInfo->readPolled = true;
} break;
case UV_WRITABLE: {
O2_SIGNPOST_END(device, sid, "socket_state", "Socket connected for channel %{public}s", context->name);
Expand Down Expand Up @@ -1672,6 +1673,10 @@ void DataProcessingDevice::doPrepare(ServiceRegistryRef ref)
channelSpec.name.c_str(), (int)info.state, info.parts.Size());
continue;
}
if (info.readPolled == false) {
O2_SIGNPOST_END(device, cid, "channels", "Channel %s which is in state %d did not request reading.", channelSpec.name.c_str(), (int)info.state);
continue;
}
auto& socket = info.channel->GetSocket();
// If we have pending events from a previous iteration,
// we do receive in any case.
Expand Down