Skip to content

Commit

Permalink
Bump to up 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Aug 3, 2018
1 parent bcfec0c commit c4e0c34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Logboard.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Logboard"
s.version = "1.1.6"
s.version = "1.1.7"
s.summary = "Simple Logging framework"

s.description = <<-DESC
Expand Down
12 changes: 1 addition & 11 deletions Sources/SocketAppender.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ class NetSocket: NSObject {

var inputBuffer: Data = Data()
var timeout: Int64 = NetSocket.defaultTimeout
internal(set) var connected: Bool = false
var connected: Bool = false
var windowSizeC: Int = NetSocket.defaultWindowSizeC
var securityLevel: StreamSocketSecurityLevel = .none
var totalBytesIn: Int64 = 0
private(set) var totalBytesOut: Int64 = 0
private(set) var queueBytesOut: Int64 = 0

var inputStream: InputStream?
var outputStream: OutputStream?
Expand Down Expand Up @@ -86,7 +83,6 @@ class NetSocket: NSObject {

@discardableResult
final func doOutput(data: Data, locked: UnsafeMutablePointer<UInt32>? = nil) -> Int {
OSAtomicAdd64(Int64(data.count), &queueBytesOut)
outputQueue.async {
data.withUnsafeBytes { (buffer: UnsafePointer<UInt8>) -> Void in
self.doOutputProcess(buffer, maxLength: data.count)
Expand Down Expand Up @@ -115,8 +111,6 @@ class NetSocket: NSObject {
break
}
total += length
totalBytesOut += Int64(length)
OSAtomicAdd64(-Int64(length), &queueBytesOut)
}
}

Expand All @@ -142,9 +136,6 @@ class NetSocket: NSObject {
buffer = UnsafeMutablePointer<UInt8>.allocate(capacity: windowSizeC)
buffer?.initialize(repeating: 0, count: windowSizeC)

totalBytesIn = 0
totalBytesOut = 0
queueBytesOut = 0
timeoutHandler = didTimeout
inputBuffer.removeAll(keepingCapacity: false)

Expand Down Expand Up @@ -201,7 +192,6 @@ class NetSocket: NSObject {
}
let length: Int = inputStream.read(buffer, maxLength: windowSizeC)
if 0 < length {
totalBytesIn += Int64(length)
inputBuffer.append(buffer, count: length)
listen()
}
Expand Down

0 comments on commit c4e0c34

Please sign in to comment.