Skip to content

Commit 228c079

Browse files
authored
Update PROTOCOL.md
1 parent 5407903 commit 228c079

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PROTOCOL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ The format is `/LEN IDX:VERS NROWS NCOLS DATA`. The command is equal to the SCSP
9595
3. NROWS represents the number of rows contained in the chunk. The total number of rows in the final Rowset will be the sum of each NROWS contained in each chunk
9696
4. NCOLS will be the same for all chunks, which means that it does not need to be computed (as a sum) in the final Rowset, and it means that a logical line is never break
9797
5. To mark the end of the Rowset, the special string `/LEN 0 0 0 ` is sent (LEN is always 6 in this case)
98-
6. After receiving a chuck the client must send an ACK message `+2 OK` to the server (to notify that it is ready to receive the next chunk). Any other ACK message is considered an ABORT and the Rowset processing is immediately aborted.
98+
99+
When the Rowset is sent in chuck, it is guaranteed that the first chuck contains a complete header and that all the chunks contain complete rows (the individual fields are not truncated in any way).
99100

100101
### SCSP RAW JSON
101102
When the first character is `{` that means that the whole packet is guarantee to be a valid JSON value that can be parsed with a JSON parser.

0 commit comments

Comments
 (0)