Skip to content

Commit

Permalink
core: tcp - fixed typo on condition introduced in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 13, 2021
1 parent 7a5ae41 commit 2e62177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/tcp_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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); */
Expand Down

0 comments on commit 2e62177

Please sign in to comment.