cakedb 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cakedb.rb +3 -3
- metadata +1 -1
data/lib/cakedb.rb
CHANGED
@@ -41,11 +41,11 @@ class CakeDB
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def data_in(length)
|
44
|
-
data =
|
45
|
-
got =
|
44
|
+
data = @server.recv(length)
|
45
|
+
got = data.bytesize
|
46
46
|
timeOver = Time.now + @timeout
|
47
47
|
while got < length
|
48
|
-
data
|
48
|
+
data += @server.recv(length-got)
|
49
49
|
got += data.bytesize
|
50
50
|
if Time.now > timeOver
|
51
51
|
raise "Timeout on incomplete read, returning what I had"
|