From c2da7b7c33daf3d19c13f56ac3850ad3111fc9b6 Mon Sep 17 00:00:00 2001 From: folkert van heusden <mail@vanheusden.com> Date: 周五, 19 11月 2021 15:38:35 +0800 Subject: [PATCH] Use TCP_CORK instead of Nagle to control flushing --- libscpi/src/parser.c | 11 ----------- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c index 67b9bd5..058cde7 100644 --- a/libscpi/src/parser.c +++ b/libscpi/src/parser.c @@ -1399,13 +1399,6 @@ for (result = 1; result != 0; result = scpiLex_Comma(state, &tmp)) { token->len += result; - if (result == 0) { - token->type = SCPI_TOKEN_UNKNOWN; - token->len = 0; - paramCount = -1; - break; - } - result = scpiParser_parseProgramData(state, &tmp); if (tmp.type != SCPI_TOKEN_UNKNOWN) { token->len += result; @@ -1416,10 +1409,6 @@ break; } paramCount++; - } - - if (token->len == -1) { - token->len = 0; } if (numberOfParameters != NULL) { -- Gitblit v1.9.1