Module: kamailio
Branch: master
Commit: ddfe15f860555048f1ad6884727d4eb52f11910f
URL:
https://github.com/kamailio/kamailio/commit/ddfe15f860555048f1ad6884727d4eb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-13T17:33:51+02:00
core: tcp - exclude crlf ping from data exchage state
---
Modified: src/core/tcp_read.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ddfe15f860555048f1ad6884727d4eb…
Patch:
https://github.com/kamailio/kamailio/commit/ddfe15f860555048f1ad6884727d4eb…
---
diff --git a/src/core/tcp_read.c b/src/core/tcp_read.c
index e6e79c2a174..2ad9579854f 100644
--- a/src/core/tcp_read.c
+++ b/src/core/tcp_read.c
@@ -1580,7 +1580,9 @@ int tcp_read_req(struct tcp_connection *con, int *bytes_read,
}
/* if we are here everything is nice and ok*/
resp = CONN_RELEASE;
- req->dxstate |= KSR_TCP_REQSTATE_DATARECV;
+ if(req->state != H_PING_CRLF) {
+ req->dxstate |= KSR_TCP_REQSTATE_DATARECV;
+ }
#ifdef EXTRA_DEBUG
LM_DBG("receiving msg(%p, %d)\n", req->start,
(int)(req->parsed - req->start));