Skip to content

Commit

Permalink
added logs to receive
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoSax committed Nov 29, 2021
1 parent 9d5247b commit bc2b2ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"repositoryURL": "https://github.com/OperatorFoundation/Datable",
"state": {
"branch": null,
"revision": "f935c18f2527f1b3cb6cad2511758b54effac5b1",
"version": "3.1.2"
"revision": "b106352f6ccc0615b898a4855a7812bd33fd8772",
"version": "3.1.4"
}
},
{
Expand Down Expand Up @@ -60,8 +60,8 @@
"repositoryURL": "https://github.com/OperatorFoundation/Transport",
"state": {
"branch": null,
"revision": "514e391f7b927e4cc90acb0076a36700f584192f",
"version": "2.3.9"
"revision": "71eaf60eb34e15bcce950d629da1b7e5ee720f71",
"version": "2.3.11"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/OperatorFoundation/Chord", from: "0.0.15"),
.package(url: "https://github.com/OperatorFoundation/Datable", from: "3.1.2"),
.package(url: "https://github.com/OperatorFoundation/Datable", from: "3.1.4"),
.package(name: "Socket", url: "https://github.com/OperatorFoundation/BlueSocket", from: "1.1.0"),
.package(url: "https://github.com/OperatorFoundation/Net", from: "0.0.1"),
.package(url: "https://github.com/OperatorFoundation/Transport", from: "2.3.11"),
Expand Down
3 changes: 3 additions & 0 deletions Sources/TransmissionLinux/TransmissionConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public class TransmissionConnection: Connection

if size == 0
{
if let log = self.log {log.error("transmission read size was zero")}
readLock.leave()
return nil
}
Expand All @@ -132,6 +133,7 @@ public class TransmissionConnection: Connection

guard let data = networkRead(size: size) else
{
if let log = self.log {log.error("transmission read's network read failed")}
readLock.leave()
return nil
}
Expand All @@ -140,6 +142,7 @@ public class TransmissionConnection: Connection

guard size <= buffer.count else
{
if let log = self.log {log.error("transmission read asked for more bytes than available in the buffer")}
readLock.leave()
return nil
}
Expand Down

0 comments on commit bc2b2ff

Please sign in to comment.