We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea19b6 commit 7cee8baCopy full SHA for 7cee8ba
Sources/SwiftCompilerPluginMessageHandling/StandardIOMessageConnection.swift
@@ -152,6 +152,10 @@ public struct StandardIOMessageConnection: MessageConnection {
152
153
// Read the JSON payload.
154
let count = Int(UInt64(littleEndian: header))
155
+ // Empty message is a termination signal.
156
+ if count == 0 {
157
+ return nil
158
+ }
159
let data = UnsafeMutableRawBufferPointer.allocate(byteCount: count, alignment: 1)
160
defer { data.deallocate() }
161
try _read(into: data)
0 commit comments