Skip to content

Commit

Permalink
Backporting a workaround that's affecting all Socks users
Browse files Browse the repository at this point in the history
  • Loading branch information
Joannis committed Oct 16, 2016
1 parent c6de53a commit 8e6191c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Sources/MongoKitten/Database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,6 @@ extension Database {

let dictionaryResponse = self.parse(response: finalResponse)

print(response.makeExtendedJSON())

guard let v = dictionaryResponse["v"] else {
throw MongoAuthenticationError.authenticationFailure
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MongoKitten/Socket.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ extension Socks.TCPClient : MongoTCP {
}

public func receive() throws -> [UInt8] {
return try self.receiveAll()
return try self.receive(maxBytes: Int(UInt16.max))
}
}

0 comments on commit 8e6191c

Please sign in to comment.