Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 CFMessagePortSendRequest 发送消息。有时我会收到一个 kCFMessagePortSendTimeout。有谁了解为什么会发生这种超时的机制?苹果文档有点,嗯,稀疏。消息端口是远程消息端口。
根据您提供的少量信息,我最好的猜测是您的 CFTimeInterval sendTimeout 和 CFTimeInterval rcvTimeout 值太小。尝试类似 sendTimeout = rcvTimeout = 30;