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.
2 parents ee655a9 + 7cee8ba commit d4518a0Copy full SHA for d4518a0
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