We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 945faac commit 49b466aCopy full SHA for 49b466a
src/flb_io.c
@@ -109,6 +109,7 @@ int flb_io_net_connect(struct flb_connection *connection,
109
int ret;
110
int async = FLB_FALSE;
111
flb_sockfd_t fd = -1;
112
+ int flags = flb_connection_get_flags(connection);
113
// struct flb_upstream *u = u_conn->u;
114
115
if (connection->fd > 0) {
@@ -119,7 +120,7 @@ int flb_io_net_connect(struct flb_connection *connection,
119
120
}
121
122
/* Check which connection mode must be done */
- if (coro) {
123
+ if (coro && (flags & FLB_IO_ASYNC)) {
124
async = flb_upstream_is_async(connection->upstream);
125
126
else {
0 commit comments