浏览代码

enlarge receive buffer considerably

the tiny buffer makes no sense in the face of huge payloads and now
additionally masses of replies from pipelined commands.
Oswald Buddenhagen 14 年之前
父节点
当前提交
ae85e455d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/isync.h

+ 1 - 1
src/isync.h

@@ -104,7 +104,7 @@ typedef struct {
 	int offset; /* start of filled bytes in buffer */
 	int bytes; /* number of filled bytes in buffer */
 	int scanoff; /* offset to continue scanning for newline at, relative to 'offset' */
-	char buf[1024];
+	char buf[100000];
 } conn_t;
 
 typedef struct {