Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug introduced in redis-internal large message optimization f…

…rom last patch.
  • Loading branch information...
commit ff757d56bdd508c9ff99588eaa6fb6e4cb20ca13 1 parent fb812f3
B. W. Lewis authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 R/redis-internal.R
5 R/redis-internal.R
@@ -64,8 +64,11 @@
dat <- tryCatch(readBin(con, 'raw', n=n),
error=function(e) .redisError(e$message))
m <- length(dat)
- if(m>=n) return(tryCatch(unserialize(dat),
+ if(m>=n) {
+ l <- readLines(con,n=1) # Trailing \r\n
+ return(tryCatch(unserialize(dat),
error=function(e) rawToChar(dat)))
+ }
# The message was not fully recieved in one pass.
# We allocate a list to hold incremental messages and then concatenate it.
# This perfromance enhancement was adapted from the Rbig server package,
Please sign in to comment.
Something went wrong with that request. Please try again.