Skip to content

Commit

Permalink
hotfix(session) set connected state when socket is reused
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jan 23, 2017
1 parent 40f1706 commit 44f2763
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cassandra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ function Host:connect()

if self.socket:getreusedtimes() > 0 then
-- No need for startup request
log.debug("Socket retrieved from the connection pool, ",
self.socket:getreusedtimes(), " times")
self.connected = true
return true
end

Expand Down

0 comments on commit 44f2763

Please sign in to comment.