Skip to content

Commit

Permalink
upstream: remove unnecessary errno message
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Sep 10, 2020
1 parent a506a7a commit 0580dc4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flb_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ int flb_upstream_conn_recycle(struct flb_upstream_conn *conn, int val)

struct flb_upstream_conn *flb_upstream_conn_get(struct flb_upstream *u)
{
int err;
struct mk_list *tmp;
struct mk_list *head;
struct flb_upstream_conn *conn = NULL;
Expand Down Expand Up @@ -355,10 +356,8 @@ struct flb_upstream_conn *flb_upstream_conn_get(struct flb_upstream *u)
/* Reset errno */
conn->net_error = -1;

int err;
err = flb_socket_error(conn->fd);
if (!FLB_EINPROGRESS(err) && err != 0) {
flb_errno();
flb_debug("[upstream] KA connection #%i is in a failed state "
"to: %s:%i, cleaning up",
conn->fd, u->tcp_host, u->tcp_port);
Expand Down

0 comments on commit 0580dc4

Please sign in to comment.