"HTTP/1.0 200 ok\r\n"
"Content-Type: text/html\r\n"
"Content-Length: 14\r\n"
- "\r\n"
- "message";
+ "\r\n";
uint32_t http_len2 = sizeof(http_buf2) - 1;
uint8_t http_buf3[] =
"message";
FLOWLOCK_WRLOCK(&f);
int r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOSERVER | STREAM_START | STREAM_EOF,
+ STREAM_TOSERVER | STREAM_START,
http_buf1,
http_len1);
if (r != 0) {
FLOWLOCK_WRLOCK(&f);
r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOCLIENT | STREAM_EOF, http_buf3,
+ STREAM_TOCLIENT, http_buf3,
http_len3);
if (r != 0) {
printf("toserver chunk 1 returned %" PRId32 ", expected 0: ", r);
FLOWLOCK_WRLOCK(&f);
r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOCLIENT | STREAM_EOF, http_buf3,
+ STREAM_TOCLIENT, http_buf3,
http_len3);
if (r != 0) {
printf("toserver chunk 1 returned %" PRId32 ", expected 0: ", r);
"HTTP/1.0 200 ok\r\n"
"Content-Type: text/html\r\n"
"Content-Length: 14\r\n"
- "\r\n"
- "message";
+ "\r\n";
uint32_t http_len2 = sizeof(http_buf2) - 1;
uint8_t http_buf3[] =
"message";
FLOWLOCK_WRLOCK(&f);
int r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOSERVER | STREAM_START | STREAM_EOF,
+ STREAM_TOSERVER | STREAM_START,
http_buf1,
http_len1);
if (r != 0) {
FLOWLOCK_WRLOCK(&f);
r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOCLIENT | STREAM_EOF, http_buf3,
+ STREAM_TOCLIENT, http_buf3,
http_len3);
if (r != 0) {
printf("toserver chunk 1 returned %" PRId32 ", expected 0: ", r);
FLOWLOCK_WRLOCK(&f);
r = AppLayerParserParse(NULL, alp_tctx, &f, ALPROTO_HTTP,
- STREAM_TOCLIENT | STREAM_EOF, http_buf3,
+ STREAM_TOCLIENT, http_buf3,
http_len3);
if (r != 0) {
printf("toserver chunk 1 returned %" PRId32 ", expected 0: ", r);