fix(mqtt): bio should retry flag clear

This commit is contained in:
gc87
2022-07-06 17:10:36 +08:00
parent 4cc5357834
commit efd8083a75
+1
View File
@@ -274,6 +274,7 @@ static BIO *bio_tcp_create(const char *addr, const char *port)
return NULL;
}
BIO_clear_flags(bio, BIO_FLAGS_SHOULD_RETRY);
BIO_set_nbio(bio, 1);
BIO_set_conn_port(bio, port);
return bio;