Skip to content

Commit

Permalink
Merge pull request ideawu#689 from ideawu/dev
Browse files Browse the repository at this point in the history
fix SSDB.php bug
  • Loading branch information
ideawu committed May 31, 2015
2 parents d191315 + 22793a6 commit f81c6f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/php/SSDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ private function send($data){
try{
while(true){
$ret = @fwrite($this->sock, $s);
if($ret === false){
if($ret === false || $ret === 0){
$this->close();
throw new SSDBException('Connection lost');
}
Expand Down
3 changes: 3 additions & 0 deletions src/util/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ bytes.o: bytes.h bytes.cpp
sorted_set.o: sorted_set.h sorted_set.cpp
${CXX} ${CFLAGS} -c sorted_set.cpp

test:
$(CXX) ${CFLAGS} test_sorted_set.cpp $(OBJS)

clean:
rm -f ${EXES} ${OBJS} *.o *.exe *.a

0 comments on commit f81c6f4

Please sign in to comment.