Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

copy MEMCACHED_MAX_BUFFER from libmemcached

  • Loading branch information...
commit ca29d4677253edf9d310c0de36a1bd59b0933b9b 1 parent 8f00c01
@tmm1 tmm1 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.