From 2279f1815d33d1eddacbaaca0b09384c4c50c1f6 Mon Sep 17 00:00:00 2001 From: Danny Guinther Date: Sun, 3 Apr 2016 21:02:28 -0400 Subject: [PATCH] Increase LINE_BUF_SIZE to handle longest possible command --- dat.h | 6 +++--- doc/protocol.en-US.md | 2 +- doc/protocol.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dat.h b/dat.h index 36093fc..6d36d79 100644 --- a/dat.h +++ b/dat.h @@ -43,9 +43,9 @@ typedef int(FAlloc)(int, int); #define MAX_TUBE_NAME_LEN 201 /* A command can be at most LINE_BUF_SIZE chars, including "\r\n". This value - * MUST be enough to hold the longest possible command or reply line, which is - * currently "USING a{200}\r\n". */ -#define LINE_BUF_SIZE 208 + * MUST be enough to hold the longest possible command ("pause-tube a{200} 4294967295\r\n") + * or reply line ("USING a{200}\r\n"). */ +#define LINE_BUF_SIZE 224 /* CONN_TYPE_* are bit masks */ #define CONN_TYPE_PRODUCER 1 diff --git a/doc/protocol.en-US.md b/doc/protocol.en-US.md index 2a84a3c..0a0a92f 100644 --- a/doc/protocol.en-US.md +++ b/doc/protocol.en-US.md @@ -590,7 +590,7 @@ pause-tube \r\n ##### `pause-tube` options * `` is the tube to pause -* `` is an integer number of seconds to wait before reserving any more jobs from the queue +* `` is an integer number of seconds < 2**32 to wait before reserving any more jobs from the queue ##### `pause-tube` responses diff --git a/doc/protocol.txt b/doc/protocol.txt index a37aa98..a170001 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -703,7 +703,7 @@ pause-tube \r\n - is the tube to pause - - is an integer number of seconds to wait before reserving any more + - is an integer number of seconds < 2**32 to wait before reserving any more jobs from the queue There are two possible responses: -- 2.11.4.GIT