Browse files

copy MEMCACHED_MAX_BUFFER from libmemcached

  • Loading branch information...
1 parent 8f00c01 commit ca29d4677253edf9d310c0de36a1bd59b0933b9b @tmm1 tmm1 committed Nov 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dalli/socket.rb
View
4 lib/dalli/socket.rb
@@ -38,7 +38,7 @@ def readfull(count)
def read_available
value = ''
loop do
- ret = kgio_tryread(1024)
+ ret = kgio_tryread(8196)
case ret
when nil
raise EOFError, 'end of stream'
@@ -96,7 +96,7 @@ def read_available
value = ''
loop do
begin
- value << read_nonblock(1024)
+ value << read_nonblock(8196)
rescue Errno::EAGAIN, Errno::EWOULDBLOCK
break
end

0 comments on commit ca29d46

Please sign in to comment.