Skip to content

Commit

Permalink
Add diagnostic logging for #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
pitfield committed Jun 10, 2020
1 parent 933661c commit 1f04ba5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/PostgresClientKit/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down

0 comments on commit 1f04ba5

Please sign in to comment.