[sr-dev] git:master:2e62177f: core: tcp - fixed typo on condition introduced in previous commit

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 13 15:18:16 CET 2021


Module: kamailio
Branch: master
Commit: 2e62177f7f08314efa883f87f3d703a4f71a1d5e
URL: https://github.com/kamailio/kamailio/commit/2e62177f7f08314efa883f87f3d703a4f71a1d5e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-13T15:17:37+01:00

core: tcp - fixed typo on condition introduced in previous commit

---

Modified: src/core/tcp_main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2e62177f7f08314efa883f87f3d703a4f71a1d5e.diff
Patch: https://github.com/kamailio/kamailio/commit/2e62177f7f08314efa883f87f3d703a4f71a1d5e.patch

---

diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c
index 8824e123ab..ba9ed92575 100644
--- a/src/core/tcp_main.c
+++ b/src/core/tcp_main.c
@@ -1145,7 +1145,7 @@ int tcpconn_read_haproxy(struct tcp_connection *c) {
 	twaitms = 0;
 	do {
 		bytes = recv(c->s, &hdr, size, 0);
-		if(bytes==-1 && errno == EINTR)) {
+		if(bytes==-1 && errno == EINTR) {
 			if(twaitms <= cfg_get(tcp, tcp_cfg, wait_data_ms)) {
 				/* LM_DBG("bytes: %d - errno: %d (%d/%d) - twait: %dms\n", bytes,
 						errno, EINTR, EAGAIN, twaitms); */




More information about the sr-dev mailing list