Skip to content

Commit 8229a9d

Browse files
committed
perhaps solve the hang issue.
Solve a potential bug in this revision.
1 parent 4f7f522 commit 8229a9d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ build.dir=classes
3333
test.build.dir=testclasses
3434
build.instr.dir=classesinstr
3535
project=java_memcached-release
36-
ver=2.6.0
36+
ver=2.6.3
3737
junit.jar=lib/junit.jar
3838
slf4japi.jar=lib/slf4j-api-1.6.1.jar
3939
slf4jsimple.jar=lib/slf4j-simple-1.6.1.jar

src/main/java/com/schooner/MemCached/SockInputStream.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ public final int read() throws IOException {
110110
b = sock.readBuf.get();
111111
}
112112
count++;
113-
return b & 0xff;
113+
/*
114+
* a potencial bug for read int or read long.
115+
*/
116+
return (b & 0xff);
114117
}
115118

116119
/**

0 commit comments

Comments
 (0)