Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

BugFix: gracefully clean up pipe objects to fix high CPUe #1374

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kkHAIKE
Copy link

@kkHAIKE kkHAIKE commented May 9, 2025

CLOSE #917

Analysis of CPU profile using Instruments revealed that availableData was consistently empty during readabilityHandler processing of the pipe.

截屏2025-05-09 09 35 21

This suggests the pipe was already closed, causing the handler to continuously receive EOF.

According to Apple's official documentation for readabilityHandler, the handler should be actively set to nil when no longer needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: always has high CPU usage
1 participant