Skip to content

Apple: handle write-without-response transmit buffer backpressure - #300

Merged
fotiDim merged 4 commits into
mainfrom
fix/apple-write-without-response-backpressure
Sep 8, 2026
Merged

fotiDim merged 4 commits into
mainfrom
fix/apple-write-without-response-backpressure

Conversation

@fotiDim

@fotiDim fotiDim commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

Handles CoreBluetooth write-without-response transmit buffer backpressure on iOS and macOS:

  • Checks peripheral.canSendWriteWithoutResponse before writing.
  • If the transmit buffer is full, stores the pending write in pendingWriteWithoutResponse.
  • Drains and completes pending writes in peripheralIsReady(toSendWriteWithoutResponse:) as buffer space frees up.
  • Cleans up and fails pending writes on peripheral disconnect.
  • Updates CHANGELOG.md.

@fotiDim
fotiDim merged commit 783033f into main Sep 8, 2026
3 checks passed
@fotiDim
fotiDim deleted the fix/apple-write-without-response-backpressure branch September 8, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants