From 1f04ba59f76813ced92344adb12c2976461e2135 Mon Sep 17 00:00:00 2001 From: David Pitfield Date: Tue, 9 Jun 2020 18:21:17 -0700 Subject: [PATCH] Add diagnostic logging for #26. --- Sources/PostgresClientKit/Connection.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/PostgresClientKit/Connection.swift b/Sources/PostgresClientKit/Connection.swift index 8a6d340..ea4a5df 100644 --- a/Sources/PostgresClientKit/Connection.swift +++ b/Sources/PostgresClientKit/Connection.swift @@ -1183,6 +1183,7 @@ public class Connection: CustomStringConvertible { // This issue results in socket.read(...) returning 0 even though the // socket is supposedly "blocking". Thread.sleep(forTimeInterval: 0.01) // 10 ms + log(.info, "Issue #26: slept for 10 ms after socket read returned 0") } } catch { log(.warning, "Error receiving response: \(error)")